body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #fff;
    color: #333;
}

main {
    margin: 20px 20px;
    padding: 0 !important;
    background-color: #fff;

}

a {
    color: #BD0000;
    text-decoration: none;
    font-weight: bold;
}

.highlight {
    color: #BD0000;
    font-weight: bold;
}



/* ============================
   🌟 Hero Section
=============================== */
.hero {
    margin-top: 55px;
    padding: 0;
    height: 350px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: url("https://firebasestorage.googleapis.com/v0/b/storage-bbd27.firebasestorage.app/o/Website%20Storage%2FAbout%2Fabout_hero.jpg?alt=media&token=51c43dfc-f81f-46f2-a658-25eee280768b") no-repeat center center/cover;
    position: relative;
    box-sizing: border-box;
    max-height: 300px;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 0;
}

/* Hero Content */
.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 0;
    margin: 0;
    padding-top: 0; /* Default for larger screens */
}

.hero-content h1 {
    font-size: 3.5em;
    font-weight: bold;
    margin: 0;
    color: white;
}

/* Commitment Section */
.commitment {
    text-align: start;
    padding: 50px 20px;
    max-width: 800px;
    padding: 50px 10%;
}

.commitment h2 em {
    margin-bottom: 20px;
    text-align: left;
    font-weight: 700;
    font-family: 'Inter', sans-serif;
    color: #A3030E;
}

.commitment p {
    font-size: 1.35rem;
    text-align: left;
    margin-bottom: 20px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    color: black;
    margin-bottom: -50px;
}

/* About Section */
.more-content {
    display: none;
}

.about,
.founder,
.vision,
.innovation {
    padding: 50px 10%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.about-text h3 {
    font-family: 'Cabin', sans-serif;
    color: black;
    letter-spacing: 5px;
}

.about-text h2 {
    color: #A3030E;
    font-family: 'Inter', sans-serif;
    font-style: italic;
}

.founder-text h3 {
    font-family: 'Cabin', sans-serif;
    color: black;
    letter-spacing: 5px;
}

.founder-text h2 {
    color: #A3030E;
    font-family: 'Inter', sans-serif;
    font-style: italic;
}

.vision-content h3 {
    font-family: 'Cabin', sans-serif;
    color: black;
}

.vision-content h2 {
    color: #A3030E;
    font-family: 'Inter', sans-serif;
    font-style: italic;
}

.about-content,
.founder-content,
.vision-content {
    max-width: 100%;
    display: grid;
    gap: 30px;
    grid-template-columns: repeat(2, 1fr);
}

/* Default Styles (for Large Screens) */
.about-image, .founder-image, .vision-images, .innovation-image {
    width: 100%;
    height: 400px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.about-image img, 
.founder-image img, 
.vision-images img, 
.innovation-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 5px;
}

/* 📍 Medium Screens (Tablets: 1024px & 768px) */
@media (max-width: 1024px) {
    .about-image, .founder-image, .vision-images, .innovation-image {
        height: 350px; /* Reduce height slightly */
    }
}

@media (max-width: 768px) {
    .about-image, .founder-image, .vision-images, .innovation-image {
        height: 300px;
    }

    .about-image img, 
    .founder-image img, 
    .vision-images img, 
    .innovation-image img {
        object-fit: contain; /* Prevent cropping on small screens */
    }
}

/* 📍 Small Screens (Phones: ≤ 670px) */
@media (max-width: 670px) {
    .about-image, .founder-image, .vision-images, .innovation-image {
        height: auto; /* Allow height to adjust dynamically */
        max-height: 280px;
    }

    .about-image img, 
    .founder-image img, 
    .vision-images img, 
    .innovation-image img {
        width: 100%;
        height: auto;
        object-fit: contain;
    }
}

/* 📍 Extra Small Screens (≤ 460px) */
@media (max-width: 460px) {
    .about-image, .founder-image, .vision-images, .innovation-image {
        height: auto;
        max-height: 250px;
    }

    .about-image img, 
    .founder-image img, 
    .vision-images img, 
    .innovation-image img {
        width: 100%;
        height: auto;
    }
}

.about-image {
    position: relative;
    width: 100%;
    height: 400px; /* Fixed height to match the founder-image */
    overflow: hidden;
    margin: 0 auto;
}

.about-image {
    width: 100%; /* Ensure it takes the full width of the container */
    display: flex;
    justify-content: center; /* Centers the image */
    align-items: center;
    overflow: hidden; /* Prevents accidental cropping */
}

.about-image img {
    width: 90%;
    height: auto;
    max-width: 600px; /* Default size */
    object-fit: contain; /* Ensures the full image is visible */
    display: block;
}
/* Extra Large screens (Widescreen Monitors & 4K Displays) */
@media (min-width: 1600px) {
    .about-image img {
        max-width: 800px; /* Increases the image size for large monitors */
    }
}

@media (min-width: 1920px) {
    .about-image img {
        max-width: 900px; /* Further increase for 4K displays */
    }
}

/* Ultra-wide screens (2560px and above) */
@media (min-width: 2560px) {
    .about-image img {
        max-width: 1000px; /* Ensures it scales appropriately */
    }
}

/* Large screens (Desktops & Laptops) */
@media (min-width: 1200px) {
    .about-image img {
        max-width: 700px;
    }
}

/* Medium screens (Tablets & Small Laptops) */
@media (max-width: 1024px) {
    .about-image img {
        max-width: 500px; /* Adjusted width for tablets */
    }
}

/* Small screens (Large smartphones) */
@media (max-width: 768px) {
    .about-image img {
        max-width: 90%; /* Allows it to shrink proportionally */
    }
}

/* Extra small screens (Mobile devices) */
@media (max-width: 480px) {
    .about-image img {
        max-width: 100%; /* Ensures full visibility */
        padding: 0 10px; /* Adds slight padding to prevent edge cropping */
    }
}

/* Ultra small screens (Very small mobile devices) */
@media (max-width: 360px) {
    .about-image img {
        max-width: 95%; /* Adjusts further for ultra-small screens */
    }
}


/* Founder Section */
.founder {
    background-color: #fff;
}

.founder-image {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
    margin: 0 auto;
}

.founder-image img{
    height: 100%;
    width: auto;
    object-fit: cover;
}

.founder-label {
    position: absolute;
    bottom: 0;
    left: 0;
    background-color: #BD0000;
    color: white;
    padding: 5px 10px;
    font-weight: bold;
}

/* Vision Section */
.vision {
    background-color: #fff;
}

/* 🌍 Default Styles (Large Screens) */
.vision-images {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 400px; /* Fixed height */
    overflow: hidden;
}

.vision-images img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Prevents cropping */
    display: block;
}

/* 📍 Medium Screens (1024px & 768px) */
@media (max-width: 1024px) {
    .vision-images {
        height: 350px; /* Reduce height slightly */
    }
}

@media (max-width: 768px) {
    .vision-images {
        height: auto; /* Allow height to adjust dynamically */
        max-height: 300px;
    }

    .vision-images img {
        width: 100%;
        height: auto;
        object-fit: contain; /* Ensures no cutting */
    }
}

/* 📍 Small Screens (Phones: ≤ 670px) */
@media (max-width: 670px) {
    .vision-images {
        height: auto;
        max-height: 280px;
    }

    .vision-images img {
        width: 100%;
        height: auto;
    }
}

/* 📍 Extra Small Screens (≤ 460px) */
@media (max-width: 460px) {
    .vision-images {
        height: auto;
        max-height: 250px;
    }

    .vision-images img {
        width: 100%;
        height: auto;
    }
}


.vision-text h3 {
    font-family: 'Cabin', sans-serif;
    color: black;
    letter-spacing: 5px;
}

/* Innovation Section */
/* 🌟 Full-Width Innovation Section */
.innovation {
    position: relative;
    width: 100%;
    min-height: 400px;
    background-color: #FFD0D4;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 50px 10%;
    overflow: hidden;
    margin: 0;
    box-sizing: border-box;
}

/* 🔥 Transparent Overlay with #fde4e4 */
.innovation::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(253, 228, 228, 0.0); /* Transparent overlay */
    z-index: 0;
}

/* 📝 Innovation Content (Text Align Left) */
.innovation-content {
    max-width: 50%;
    position: relative;
    z-index: 1;
    text-align: left;
}

/* 📷 Innovation Image */
.innovation-image {
    max-width: 40%;
    position: relative;
    z-index: 1;
}

/* 📍 Fix for Small Screens (Full Width) */
@media (max-width: 768px) {
    .innovation {
        flex-direction: column-reverse;
        padding: 30px 5%;
    }

    .innovation-content {
        max-width: 100%;
        text-align: left;
    }

    .innovation-image {
        max-width: 80%;
        margin: 30px auto 0 auto; /* Adds space above the image */
    }
}

/* 📍 Extra Small Screens (≤ 460px) */
@media (max-width: 460px) {
    .innovation-image {
        max-width: 90%;
        margin: 40px auto 0 auto; /* Adds more space above */
    }
}

.innovation-content {
    max-width: 50%;
}

.innovation-content h2 {
    margin-bottom: 10px;
    margin-top: 10px;
}

.innovation-content p {
    line-height: 50px;
    color: black;
    font-family: 'Inter', sans-serif;
    font-size: 1.25rem;
}

.contact-btn {
    background-color: black;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 15px;
    font-size: 16px;
    cursor: pointer;
    margin-top: 10px;
}

.contact-btn:hover {
    background-color: #a00000;
}

.innovation-image {
    max-width: 40%;
}

@media (max-width: 768px) {
    .about-content,
    .founder-content,
    .vision-content {
        display: flex;
        flex-direction: column;
    }

    .founder-content {
        flex-direction: column-reverse;
    }

    .founder-image {
        max-height: 400px;
    }

    .founder-image img{
        height: 100%;
        width: auto;
        object-fit: cover;
    }
}

@media (max-width: 670px) {
    .innovation {
        flex-direction: column-reverse;
        width: auto;
        padding: 10px;
    }

    .innovation-content {
        max-width: 80%;
    }

    .innovation-image img{
        width: auto;
        height: 200px;
        width: auto;
    }
    
}

@media (max-width: 460px){

    .innovation-image{
        max-width: 100%;
        margin: 0 auto;
    }

    .innovation-image img{
        height: 200px;
        margin-top: 20px;
        width: auto;
    }
}

/* Default styling for large screens (Desktops) */
.innovation-image img {
    width: 100%;
    max-width: 600px;
    height: auto;
    display: block;
}

/* Large Screens (1440px and above, large desktops) */
@media (min-width: 1440px) {
    .innovation-content {
        max-width: 1200px;
        margin: auto;
    }
    
    .innovation-image img {
        max-width: 650px;
    }
}

/* Medium Screens (Laptops, Tablets - 1024px and below) */
@media (max-width: 1024px) {
    .innovation-content {
        text-align: center;
    }
    
    .innovation-image img {
        max-width: 500px;
    }
}

/* Small Screens (Tablets - 768px and below) */
@media (max-width: 768px) {
    .innovation-content {
        text-align: center;
    }

    .innovation-image {
        display: flex;
        justify-content: center;
    }

    .innovation-image img {
        max-width: 450px;
    }
}

/* Extra Small Screens (Mobile - 480px and below) */
@media (max-width: 480px) {
    .innovation-content {
        text-align: center;
    }

    .innovation-image {
        display: flex;
        justify-content: center;
    }

    .innovation-image img {
        max-width: 80%;
        margin: 0 auto;
    }
}

/* Ultra Small Screens (320px and below, very small mobiles) */
@media (max-width: 320px) {
    .innovation-content {
        text-align: center;
    }

    .innovation-image img {
        max-width: 90%;
        margin: 0 auto;
    }
}
