/* General Styling for About Page */
body {
    font-family: 'Poppins', sans-serif;
    color: #333;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    color: #1f0e05; /* Darker tone for headings */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* === HERO SECTION (Parallax Background) === */
.about-hero {
    position: fixed; /* Changed for parallax */
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    text-align: center;
    color: #fff;
    overflow: hidden;
    z-index: -1; /* Ensures it stays behind other content */
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-hero::before {
    content: '';
    background: linear-gradient(to bottom, rgba(0,0,0,0.5), rgba(0,0,0,0.7)); /* Slightly darker overlay for contrast */
    position: absolute;
    z-index: 2;
    inset: 0;
}

.about-hero-content {
    position: relative;
    z-index: 3;
    padding: 1rem 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.about-hero h1 {
    font-size: 3.8rem; /* Larger for impact */
    margin-bottom: 1rem;
    color: #fff;
    font-weight: 700;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.5); /* Add text shadow for readability */
}

.about-hero p {
    font-size: 1.3rem;
    max-width: 700px;
    margin: 0 auto;
    color: #f0f0f0;
    line-height: 1.5;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.4);
}

/* === ABOUT US CONTENT SECTION (Scrolling on top) === */
.about-us-content {
    padding: 6rem 0; /* Adjusted padding */
    background: #fdfdfd;
    margin-top: 100vh; /* Pushes content down to scroll over fixed hero */
    position: relative;
    z-index: 1; /* Ensures it scrolls on top */
    box-shadow: 0 -10px 30px rgba(0,0,0,0.05); /* Subtle shadow for depth */
}

.story-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem; /* Increased gap */
    align-items: center;
    justify-content: center; /* Center items for better layout on smaller screens */
}

.about-story-image {
    flex: 1 1 45%;
    max-width: 550px; /* Constrain image size */
    text-align: center;
}

.about-story-image img {
    width: 100%;
    max-height: 500px; /* Max height to prevent overly large images */
    object-fit: cover;
    border-radius: 1.5rem; /* More rounded corners */
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15); /* Stronger shadow */
    transition: transform 0.3s ease;
}

.about-story-image img:hover {
    transform: translateY(-5px);
}

.about-story-text {
    flex: 1 1 45%;
    max-width: 600px; /* Constrain text block size */
}

.about-story-text h2 {
    font-size: 2.8rem; /* Larger heading */
    margin-bottom: 1.2rem;
    color: #e63946; /* Vibrant red from 8848momos */
    text-align: left; /* Align text to left */
}

.about-story-text p {
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 1rem;
    color: #444;
}

/* === HOW SHREE FOODS WAS BORN SECTION === */
.how-shree-foods-was-born {
    padding: 6rem 0;
    background: #fdf3e8; /* Light, warm background color */
    position: relative;
    z-index: 1;
}

.born-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
    align-items: center;
    justify-content: center;
    flex-direction: row-reverse; /* Image on right, text on left */
}

.born-text {
    flex: 1 1 45%;
    max-width: 600px;
}

.born-text h2 {
    font-size: 2.8rem;
    margin-bottom: 0.8rem;
    color: #333;
    text-align: left;
}

.born-text h3 {
    font-size: 1.5rem;
    color: #003893; /* Blue accent from 8848momos */
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.born-text p {
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 1rem;
    color: #444;
}

.born-image {
    flex: 1 1 45%;
    max-width: 550px;
    text-align: center;
}

.born-image img {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    border-radius: 1.5rem;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
}

.born-image img:hover {
    transform: translateY(-5px);
}

/* === WHY WE'RE SPECIAL SECTION (Feature Cards) === */
.about-features {
    padding: 6rem 0;
    background: #ffffff; /* Clean white background */
    text-align: center;
    position: relative;
    z-index: 1;
}

.about-features .section-title {
    font-size: 3rem;
    margin-bottom: 3.5rem;
    color: #e63946; /* Vibrant red */
    font-weight: 700;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* Slightly larger min-width */
    gap: 2.5rem; /* Increased gap */
}

.feature-card {
    background: #fdfdfd; /* Light background for cards */
    padding: 2.5rem 1.5rem; /* Increased padding */
    border-radius: 1.5rem; /* More rounded corners */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08); /* Improved shadow */
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden; /* For background pseudo-element */
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f7f9fc 0%, #eef2f8 100%); /* Subtle gradient background */
    z-index: 0;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-card:hover {
    transform: translateY(-10px); /* More pronounced lift */
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.15); /* Stronger shadow on hover */
}

.card-icon-wrapper {
    width: 80px;
    height: 80px;
    background: #e63946; /* Vibrant red background for icons */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem; /* Centered and increased margin */
    position: relative;
    z-index: 1;
    box-shadow: 0 5px 15px rgba(230, 57, 70, 0.4); /* Shadow for icon wrapper */
    transition: background 0.3s ease;
}

.feature-card:nth-child(2) .card-icon-wrapper { /* Example for second card, can generalize with more specific classes */
    background: #003893; /* Blue for the second card icon */
    box-shadow: 0 5px 15px rgba(0, 56, 147, 0.4);
}

.feature-card:nth-child(3) .card-icon-wrapper { /* Example for third card */
    background: #ffc107; /* Yellow for the third card icon */
    box-shadow: 0 5px 15px rgba(255, 193, 7, 0.4);
}

.card-icon-wrapper img {
    width: 50px; /* Slightly larger icons */
    height: 50px;
    filter: brightness(0) invert(1); /* Makes icons white if they are black */
    margin: 0; /* Remove default margin */
}

.feature-card h3 {
    color: #e63946; /* Matching vibrant red for heading */
    margin-bottom: 0.8rem;
    font-size: 1.4rem; /* Larger heading */
    font-weight: 700;
    position: relative;
    z-index: 1;
}

.feature-card:nth-child(2) h3 {
    color: #003893; /* Blue for the second card heading */
}
.feature-card:nth-child(3) h3 {
    color: #ffc107; /* Yellow for the third card heading */
}

.feature-card p {
    font-size: 1.05rem; /* Slightly larger text */
    color: #555;
    position: relative;
    z-index: 1;
}

/* === Responsive Adjustments === */
@media (max-width: 992px) {
    .about-hero h1 {
        font-size: 3rem;
    }
    .about-hero p {
        font-size: 1.1rem;
    }
    .story-wrapper,
    .born-wrapper {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }
    .about-story-text,
    .born-text {
        max-width: 100%;
        text-align: center; /* Center text on smaller screens */
    }
    .about-story-text h2,
    .born-text h2 {
        text-align: center; /* Center headings on smaller screens */
        font-size: 2.2rem;
    }
    .born-text h3 {
        text-align: center; /* Center sub-heading */
        font-size: 1.3rem;
    }
    .about-story-image,
    .born-image {
        max-width: 80%; /* Adjust image width for better mobile view */
    }
    .about-features .section-title {
        font-size: 2.5rem;
    }
    .feature-grid {
        grid-template-columns: 1fr; /* Stack cards vertically */
    }
    .feature-card {
        padding: 2rem 1rem;
    }
    .card-icon-wrapper {
        margin-bottom: 1rem;
    }
}

@media (max-width: 576px) {
    .about-hero h1 {
        font-size: 2.5rem;
    }
    .about-hero p {
        font-size: 1rem;
    }
    .about-us-content,
    .how-shree-foods-was-born,
    .about-features {
        padding: 4rem 0; /* Reduced padding */
    }
    .about-story-text h2,
    .born-text h2 {
        font-size: 1.8rem;
    }
    .about-story-image,
    .born-image {
        max-width: 100%;
    }
    .about-features .section-title {
        font-size: 2rem;
    }
    .feature-card h3 {
        font-size: 1.2rem;
    }
    .feature-card p {
        font-size: 0.9rem;
    }
}