/*  index.css
    Purpose        Full landing-page styling for money-iq.ai (hero, about, key-features,
                   insights, call-to-action, SVG waves, section-fade transitions).
    Key features   ▸ Full-viewport hero with staggered fade-in animation
                   ▸ Fixed-position section frames & smooth cross-fade navigation
                   ▸ SVG “wave” separators between coloured gradient blocks
                   ▸ Responsive feature-grid (4-, 2-, 1-column breakpoints)
                   ▸ Alternating image/text insight blocks with reverse-flex on odd rows
                   ▸ CTA logo reveal, equal-width CTA buttons
    Depends on     Font Awesome (icons), index.js (IntersectionObserver triggers),
                   images/hero-*.png, images/features/*.png

    Last updated   31 Jul 2025
*/



html {
  scroll-behavior: smooth;
}


/* General Styling for Sections */
    .hero-section,
    .key-features,
    .insights-section {
        position: fixed; /* Keep sections in the same space */
        top: 0;
        left: 0;
        width: 100%;
        transition: opacity 0.8s ease; /* Smooth fade transition */
        overflow-y: hidden; /* Prevent scrolling for sections */
    }

/* Hero Section Visible */
.hero-section {
    z-index: 3; /* Ensure it starts on top */
    opacity: 1;
    pointer-events: auto;
    height: 100vh; /* Full viewport height */
}

/* Hero Section Hidden */
.hero-section.hidden {
    opacity: 0; /* Fades out */
    pointer-events: none;
}

/* About Section */
.about-section {
    opacity: 0; /* Initially hidden */
    pointer-events: none; /* Disable interactions */
    z-index: 2; /* Below Hero Section initially */
    transition: opacity 0.8s ease; /* Smooth fade transition */
}

/* About Section Visible */
.about-section.visible {
    opacity: 1; /* Fade in */
    pointer-events: auto; /* Enable interactions */
    z-index: 3; /* Bring it to the front */
}

/* Key Features Section */
.key-features {
    z-index: 2; /* Below the Hero Section initially */
    opacity: 0; /* Start hidden */
    pointer-events: none;
    height: 100vh; /* Full viewport height */
}

.key-features.visible {
    opacity: 1; /* Fades in */
    pointer-events: auto;
    z-index: 3; /* Bring it on top */
}

/* Insights Section */
.insights-section {
    z-index: 1; /* Below Key Features Section initially */
    opacity: 0; /* Start hidden */
    pointer-events: none;
    overflow-y: auto; /* Allow scrolling for dynamic content */
    min-height: 100vh; /* At least full viewport height */
}

.insights-section.visible {
    opacity: 1; /* Fades in */
    pointer-events: auto;
    z-index: 3; /* Bring it on top */
}

/* Frame Styling */
.frame {
    max-width: 1200px; /* Matches Features Section width */
    margin: 0 auto;
    padding: 20px;
    height: auto; /* Allow content height to adjust */
    overflow-y: auto; /* Enable internal scrolling for large content */
}





/* Hero Section */
.hero-section {
    background: linear-gradient(to bottom, #000, #4ea1d3); /* Matches wave's start color */
    color: white;
    height: 80vh; /* Maintain height */
    display: flex;
    align-items: center; /* Center content vertically */
    justify-content: center; /* Center content horizontally */
    position: relative;
    overflow: hidden; /* Prevent any overflow */
    padding: 0;
    box-sizing: border-box;
}

/* Hero Wave */
.hero-wave {
    position: absolute;
    bottom: 0; /* Ensures the wave is at the bottom */
    left: 0;
    width: 100%; /* Full width to span across the section */
    height: 80px; /* Adjust wave height */
    z-index: 1;
    overflow: hidden;
}

.hero-wave svg {
    display: block;
    width: 100%; /* Full width for the SVG */
    height: 100%; /* Fit container height */
    preserveAspectRatio: none; /* Ensures it fills the container */
}

/* Hero Content Container */
.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    width: 100%; /* Full-width container */
    margin: 0 auto;
    padding: 0 30px; /* Adjusted padding for desktop spacing */
    gap: 40px; /* Adds spacing between columns */
}

/* Hero Text */
.hero-text {
    flex: 1;
    padding: 20px;
    margin-left: -190px; /* Adjusted positioning */
    margin-top: -50px;
    text-align: center; /* Retain the current text formatting */
    opacity: 0; /* Hidden initially for animation */
    transform: translateY(50px); /* Slide in from below */
    animation: fadeInUp 1s ease-out forwards; /* Fade and slide in */
    animation-delay: 0.5s; /* Delayed for staggered effect */
}

.hero-text h1 {
    font-size: 3rem; /* Larger heading for better emphasis */
    margin-bottom: 30px; /* Added spacing below heading */
}

.hero-text p {
    font-size: 1.3rem; /* Slightly larger font size */
    line-height: 1.8; /* Improved line spacing */
    margin-bottom: 40px; /* More space before the button */
    color: #F5F5F5;
}

.hero-text .cta-button {
    display: inline-block;
    background-color: #4EA1D3;
    color: white;
    padding: 15px 30px; /* Larger button size */
    border-radius: 5px;
    text-decoration: none;
    font-size: 1.2rem; /* Bigger font for emphasis */
    transition: background-color 0.3s ease;
}

.hero-text .cta-button:hover {
    background-color: #357AA3;
}

/* Hero Image */
.hero-image {
    flex: 1;
    text-align: center;
    padding: 20px;
    opacity: 0; /* Hidden initially for animation */
    transform: translateY(50px); /* Slide in from below */
    animation: fadeInUp 1.5s ease-out forwards; /* Fade and slide in */
    animation-delay: 1s; /* Staggered effect after the text */
}

.hero-image img {
    max-width: 300%; /* Increase this value to allow the image to grow */
    width: 800px; /* Set a fixed width for consistency */
    height: auto; /* Maintain aspect ratio */
    border-radius: 0; /* Ensure no rounded corners */
    box-shadow: none; /* Remove any shadows */
}

/* Highlight */
.hero-section .highlight {
    color: white;
    font-weight: bold;
}

/* Keyframes for Animation */
@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(50px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/*About Section*/
.about-section {
    background: linear-gradient(to bottom, #000, #4ea1d3); /* Matches other sections */
    color: white;
    padding: 60px 20px;
    position: relative;
    overflow: hidden;
    text-align: center;
    height: auto; /* Adjusted for content height */
    transition: opacity 0.8s ease; /* Smooth fade transition */
}

.about-section h2 {
    font-size: 2.5rem;
    margin-bottom: 40px;
}

.about-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: flex-start; /* Align items to the top */
    gap: 30px; /* Space between image and text */
    flex-wrap: wrap; /* Ensure responsiveness */
}

.about-content {
    display: flex;
    flex-direction: row;
    align-items: flex-start; /* Align image and text to the top */
    justify-content: space-between;
    gap: 30px;
    flex-wrap: wrap;
}

.founder-image {
    flex: 0 0 300px; /* Fixed width for the image container */
    text-align: center;
    display: flex;
    flex-direction: column; /* Stack image, name, and title */
    align-items: center;
    margin-top: 25px; /* Adjust top alignment */
}

.founder-image img {
    width: 100%; /* Scale image to container width */
    max-width: 300px; /* Restrict to suggested dimensions */
    height: auto; /* Maintain aspect ratio */
    border-radius: 10px; /* Rounded corners for aesthetic */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5); /* Subtle shadow for depth */
}

.founder-name {
    margin-top: 15px;
    font-size: 1.2rem;
    font-weight: bold;
    color: white;
}

.founder-title {
    margin-top: -15px; /* Reduce spacing between name and title */
    font-size: 1rem;
    color: #ddd; /* Slight contrast for title */
}

.about-text {
    flex: 1; /* Allow text to take remaining space */
    text-align: left;
    color: #ddd;
    line-height: 1.8;
}

.about-text p {
    margin-bottom: 20px;
    font-size: 1.2rem;
}

/* About Wave */
.about-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 80px;
    z-index: 0;
}

.about-wave svg {
    display: block;
    width: 100%;
    height: 100%;
    preserveAspectRatio: none;
}



/* Key Features Section */
.key-features {
    background: linear-gradient(to bottom, #000, #4ea1d3);
    padding: 60px 30px;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden; /* Prevent overflow from animations */
}

/* Features Wave */
.features-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 80px;
    z-index: 0;
}

.features-wave svg {
    display: block;
    width: 100%;
    height: 100%;
    preserveAspectRatio: none;
}

/* Section Title */
.key-features h2 {
    font-size: 2.5rem;
    margin-bottom: 40px;
    z-index: 1;
    position: relative;
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.8s ease;
}

/* Features Container */
.features-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* Four equal columns */
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s ease;
}

/* Individual Feature */
.feature {
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s ease;
}

/* Feature Image */
.feature img {
    max-width: 100%;
    height: auto;
    margin-bottom: 20px; /* Ensure consistent gap with the title */
    border-radius: 5px;
    flex-shrink: 0;
}

/* Feature Title */
.feature h3 {
    color: white !important;
    font-size: 23px !important;
    margin-bottom: 20px; /* Maintain consistent spacing below */
    color: #4EA1D3;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 0; /* Ensure no additional gap above the title */
}

/* Feature Description */
.feature p {
    font-size: 1rem;
    line-height: 1.5;
    color: #ddd;
    min-height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Hover Effect */
.feature:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
}

/* Animations When Section Becomes Visible */
.key-features.visible h2 {
    opacity: 1;
    transform: translateY(0);
}

.key-features.visible .features-container {
    opacity: 1;
    transform: translateY(0);
}

.key-features.visible .feature {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered Animation for Feature Cards */
.key-features .feature:nth-child(1) {
    transition-delay: 0.2s;
}
.key-features .feature:nth-child(2) {
    transition-delay: 0.4s;
}
.key-features .feature:nth-child(3) {
    transition-delay: 0.6s;
}
.key-features .feature:nth-child(4) {
    transition-delay: 0.8s;
}















/* Insights Section */
.insights-section {
    background: linear-gradient(to bottom, #000, #4ea1d3); /* Gradient background */
    padding: 60px 20px;
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden; /* Prevents content overflow */
}

/* Section Title */
.insights-section h2 {
    font-size: 2.5rem;
    margin-bottom: 40px;
    color: #ffffff;
    text-align: center;
    opacity: 1; /* Always visible */
    transform: none; /* No transformation */
}

/* Frame Styling */
.frame {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    background: rgba(255, 255, 255, 0.1); /* Subtle background contrast */
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5); /* Soft shadow for depth */
}

div.frame {
    padding-bottom: 60px;
    margin-bottom: 60px !important;
}

/* Block Container */
.insights-block {
    display: flex;
    flex-direction: column;
    gap: 40px; /* Space between blocks */
    overflow: visible; /* Ensure content is displayed */
}

/* Individual Block */
.block {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 30px; /* Space between image and content */
    text-align: left;
    opacity: 1; /* Always visible */
    transform: none; /* No transformation */
}

/* Reverse Layout for Alternating Blocks */
.block.reverse {
    flex-direction: row-reverse;
}

/* Content Styling */
.content {
    flex: 1;
    color: #ffffff; /* Text color white */
}

.icon-heading {
    display: flex;
    align-items: center;
    gap: 10px;
}

.icon {
    font-size: 2rem;
    color: #ffffff; /* Icon color white */
    margin-left: 50px;
}

.content h3 {
    font-size: 1.5rem;
    margin: 0;
    color: #ffffff; /* Heading color white */
}

.content p {
    font-size: 1rem;
    line-height: 1.6;
    color: #ffffff; /* Text color white */
    margin-left: 50px;
}

/* Image Styling */
.image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.image img {
    max-width: 100%;
    width: 500px; /* Restrict image width */
    height: auto;
}

/* Insights Wave */
.insights-wave {
    position: absolute;
    bottom: 0; /* Places wave at the bottom */
    left: 0;
    width: 100%;
    height: 80px;
    z-index: 0;
}

.insights-wave svg {
    display: block;
    width: 100%;
    height: 100%;
    preserveAspectRatio: none; /* Ensures it fills the container */
}

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

    .block.reverse {
        flex-direction: column;
    }

    .image img {
        width: 100%;
        max-width: 300px; /* Smaller images on mobile */
    }
}










/* Call-to-Action Section */
.cta-section {
    background: linear-gradient(to top, #4ea1d3, #000); /* Gradient from dark to light */
    color: white;
    text-align: center;
    padding: 200px 20px; /* Unified top and bottom padding */
    position: relative;
    overflow: hidden; /* Prevent overflow */
    min-height: 50vh; /* Ensures a minimum height */
    display: flex;
    flex-direction: column; /* Stack content vertically */
    justify-content: center;
    align-items: center;
}

/* Call-to-Action Logo Styling */
.cta-logo {
    max-width: 700px; /* Increase the size of the logo */
    width: 100%;
    margin: 0 auto 20px auto; /* Center horizontally and add space below */
    display: block; /* Ensures it behaves as a block element for centering */
    opacity: 0; /* Hidden by default */
    transform: translateY(-20px); /* Slide up effect */
    transition: opacity 2.0s ease, transform 2.0s ease; /* Smooth fade and slide */
    text-align: center; /* Aligns logo to center within its parent container */
}

.cta-logo.visible {
    opacity: 1; /* Fade in */
    transform: translateY(0); /* Reset position */
}

img.cta-logo {
    margin-left: 220px !important;
    margin-bottom: -10px !important;
}

/* Call-to-Action Section Adjustments */
.cta-container {
    text-align: center; /* Ensure content in the container is centered */
    display: flex;
    flex-direction: column; /* Stack items vertically */
    align-items: center; /* Center items horizontally */
}


/* Heading in Call-to-Action Section */
.cta-container h2 {
    font-size: 2.5rem; /* Large heading size */
    margin-bottom: 20px;
    color: white;
}

/* Paragraph in Call-to-Action Section */
.cta-container p {
    font-size: 1.2rem; /* Slightly smaller text size */
    line-height: 1.8; /* Better readability */
    margin-bottom: 30px; /* Space below the paragraph */
    color: #F5F5F5; /* Subtle off-white text */
}

/* Button Styling */
.cta-button {
    display: inline-block;
    background-color: #4EA1D3; /* Matches brand color */
    color: white;
    padding: 15px 30px; /* Button dimensions */
    border-radius: 5px;
    text-decoration: none;
    font-size: 1.2rem; /* Consistent with other buttons */
    transition: background-color 0.3s ease; /* Smooth hover effect */
}

.cta-button:hover {
    background-color: #357AA3; /* Darker shade on hover */
}

/* Call-to-Action Wave */
.cta-wave {
    position: absolute;
    bottom: 0; /* Align to the bottom */
    left: 0;
    width: 100%; /* Full width */
    height: 80px; /* Adjust wave height */
    z-index: 0; /* Send to back */
}

.cta-wave svg {
    display: block; /* Ensures it spans the container */
    width: 100%;
    height: 100%;
    preserveAspectRatio: none; /* Maintain proportions */
}



@media screen and (max-width: 1512px) and (max-height: 982px) {
    /* Remove negative hero-text margins */
    .hero-text {
        margin-left: 0 !important;
        margin-top: 0 !important;
    }

    /* Shrink hero image */
    .hero-image img {
        max-width: 100% !important;
        width: auto !important;
    }

    /* Let Key Features section grow as needed */
    .key-features {
        position: relative !important;
        height: auto !important;
        overflow: visible !important;
    }

    /* Make features less cramped */
    .features-container {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .hero-text p {
        line-height: 1.4 !important;
    }

    .hero-container {
        margin-top: -60px !important;
    }

    .hero-image img {
        max-width: 120% !important;
        width: auto !important;
    }

    .hero-text {
        margin-left: -100px !important;
    }

    .key-features {
        padding-bottom: 60px !important; /* Extra space at bottom of section */
    }
    .features-container {
        grid-template-columns: repeat(4, 1fr) !important;
        max-width: 1200px !important; 
        margin: 0 auto !important;  /* Center the container */
    }
    .feature {
        margin-bottom: 30px !important; /* Space below each feature */
        margin-top: -30px;
    }
    .feature img {
        display: block !important;
        margin: 0 auto !important;
        max-width: 90% !important;
    }


}


@media screen and (max-width: 3024  px) and (max-height: 1964px) {
    /* Remove negative hero-text margins */
    .hero-text {
        margin-left: 0 !important;
        margin-top: 0 !important;
    }

    /* Shrink hero image */
    .hero-image img {
        max-width: 100% !important;
        width: auto !important;
    }

    /* Let Key Features section grow as needed */
    .key-features {
        position: relative !important;
        height: auto !important;
        overflow: visible !important;
    }

    /* Make features less cramped */
    .features-container {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .hero-text p {
        line-height: 1.4 !important;
    }

    .hero-container {
        margin-top: -60px !important;
    }

    .hero-image img {
        max-width: 120% !important;
        width: auto !important;
    }

    .hero-text {
        margin-left: -100px !important;
    }

    .key-features {
        padding-bottom: 60px !important; /* Extra space at bottom of section */
    }

    .features-container {
        grid-template-columns: repeat(4, 1fr) !important;
        max-width: 1200px !important; 
        margin: 0 auto !important;  /* Center the container */
    }

    .feature {
        margin-bottom: 30px !important; /* Space below each feature */
        margin-top: -30px;
    }

    .feature img {
        display: block !important;
        margin: 0 auto !important;
        max-width: 90% !important;
    }
}




@media screen and (max-width: 1352px) and (max-height: 878px) {
    /* Remove negative hero-text margins */
    .hero-text {
        margin-left: 0 !important;
        margin-top: 0 !important;
    }

    /* Shrink hero image */
    .hero-image img {
        max-width: 100% !important;
        width: auto !important;
    }

    /* Make Key Features section grow as needed */
    .key-features {
        position: relative !important;
        height: auto !important;
        overflow: visible !important;
    }

    /* Stack features in a single column */
    .features-container {
        grid-template-columns: 1fr !important;
    }

    .key-features {
        padding-bottom: 60px !important; /* Extra space at bottom of section */
    }
    .features-container {
        grid-template-columns: repeat(4, 1fr) !important;
        max-width: 1200px !important; 
        margin: 0 auto !important;  /* Center the container */
    }
    .feature {
        margin-bottom: 30px !important; /* Space below each feature */
        margin-top: -30px;
    }
    .feature img {
        display: block !important;
        margin: 0 auto !important;
        max-width: 90% !important;
    }
}


@media screen and (max-width: 1147px) and (max-height: 745px) {
    /* Remove negative hero-text margins */
    .hero-text {
        margin-left: 0 !important;
        margin-top: 0 !important;
    }

    /* Shrink hero image */
    .hero-image img {
        max-width: 100% !important;
        width: auto !important;
    }

    /* Make Key Features section grow as needed */
    .key-features {
        position: relative !important;
        height: auto !important;
        overflow: visible !important;
    }

    /* Make features less cramped */
    .features-container {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .hero-text p {
        line-height: 1.4 !important;
        font-size: 16px !important;
    }

    h1 {
        font-size: 30px !important;
    }

    .hero-container {
        margin-top: -60px !important;
    }


    /*.hero-text {
        margin-left: -100px !important;
    }*/

    .key-features {
        padding-bottom: 60px !important; /* Extra space at bottom of section */
    }
    .features-container {
        grid-template-columns: repeat(4, 1fr) !important;
        max-width: 1200px !important; 
        margin: 0 auto !important;  /* Center the container */
    }
    .feature {
        margin-bottom: 30px !important; /* Space below each feature */
        margin-top: -30px;
    }
    .feature img {
        display: block !important;
        margin: 0 auto !important;
        max-width: 90% !important;
    }

}


/* Make both CTA buttons equal width */
.cta-buttons {
  display: flex;
  gap: 1rem; /* space between buttons */
}

.cta-buttons .cta-button {
  flex: 1;           /* each button takes equal share */
  display: block;    /* so width: 100% applies */
  text-align: center;/* keep text centred */
}

