/* Global Styles & Theme */
:root {
    --primary-green: #8BC34A;
    /* From logo */
    --primary-orange: #FFA726;
    /* From logo */
    --dark-grey: #424242;
    /* For text */
    --medium-grey: #757575;
    --light-grey: #f4f4f4;
    --text-color: #333;
    --heading-font: 'Montserrat', sans-serif;
    /* Example font */
    --body-font: 'Roboto', sans-serif;
    /* Example font */
    --container-width: 90%;
    --max-container-width: 1200px;
}

/* Import Fonts (Example: Google Fonts) */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700&family=Roboto:wght@400;500;700&display=swap');

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

body {
    font-family: var(--body-font);
    color: var(--text-color);
    line-height: 1.6;
    background-color: #fff;
    overflow-x: hidden;
    /* Prevent horizontal scroll on body */
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--heading-font);
    color: var(--dark-grey);
    margin-bottom: 0.8em;
}

a {
    text-decoration: none;
    color: var(--primary-orange);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-green);
}

.container {
    width: var(--container-width);
    max-width: var(--max-container-width);
    margin: 0 auto;
    padding: 20px 0;
}

.section {
    padding: 60px 20px;
    text-align: center;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 10px;
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
    color: var(--dark-grey);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--primary-green);
    border-radius: 2px;
}

.section p.subtitle {
    font-size: 1.1rem;
    color: var(--medium-grey);
    max-width: 700px;
    margin: 0 auto 40px auto;
}


/* Loader Styles */
.loader-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.loader-container.show {
    opacity: 1;
    visibility: visible;
}

.loader {
    border: 8px solid var(--light-grey);
    border-top: 8px solid var(--primary-green);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Header */
header {
    background-color: #fff;
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: var(--container-width);
    max-width: var(--max-container-width);
    margin: 0 auto;
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo-container img {
    height: 50px;
    /* Adjust as needed */
    margin-right: 10px;
}

.logo-container .company-name {
    font-family: var(--heading-font);
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--dark-grey);
    letter-spacing: 0.5px;
}

.company-name .pharma-india {
    display: block;
    font-size: 0.8rem;
    letter-spacing: 2px;
    color: var(--medium-grey);
    font-weight: 400;
    text-transform: uppercase;
}


nav ul {
    list-style: none;
    display: flex;
}

nav ul li {
    margin-left: 25px;
}

nav ul li a {
    font-family: var(--heading-font);
    font-weight: 500;
    color: var(--dark-grey);
    padding-bottom: 5px;
    position: relative;
    transition: color 0.3s ease;
}

nav ul li a.active,
nav ul li a:hover {
    color: var(--primary-green);
}

nav ul li a.active::after,
nav ul li a:hover::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-green);
}


.menu-toggle {
    display: none;
    /* Hidden by default, shown on mobile */
    font-size: 1.8rem;
    color: var(--dark-grey);
    background: none;
    border: none;
    cursor: pointer;
}


/* Carousel Section - For 4 Carousels */
#carousel-section {
    background-color: var(--light-grey);
    padding-top: 40px;
    /* Extra padding if header is sticky */
}

.carousel-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.carousel-instance {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    height: 400px;
    /* Adjust height for mini carousels */
}

.carousel-slide {
    display: none;
    /* Hidden by default */
    width: 100%;
    height: 100%;
}

.carousel-slide.active {
    display: block;
    /* Show active slide */
    animation: fadeIn 0.8s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0.4;
    }

    to {
        opacity: 1;
    }
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 10px;
    z-index: 10;
}

.carousel-btn {
    background-color: rgba(0, 0, 0, 0.4);
    color: white;
    border: none;
    padding: 8px 12px;
    cursor: pointer;
    border-radius: 50%;
    font-size: 1rem;
    transition: background-color 0.3s ease;
}

.carousel-btn:hover {
    background-color: rgba(0, 0, 0, 0.7);
}


/* Vision & Mission Section */
#vision-mission-section {
    background-color: #fff;
}

.vision-mission-container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
    margin-top: 40px;
}

.vm-card {
    background-color: var(--light-grey);
    padding: 30px;
    border-radius: 8px;
    flex-basis: calc(50% - 15px);
    /* Two cards per row on larger screens */
    min-width: 300px;
    /* Ensure readability on smaller flex items */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: left;
}

.vm-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.vm-card h3 {
    color: var(--primary-green);
    margin-bottom: 15px;
    font-size: 1.8rem;
}

.vm-card i {
    font-size: 2.5rem;
    color: var(--primary-orange);
    margin-bottom: 15px;
    display: block;
    text-align: center;
}


/* Our Products Section (Index Page) */
#products-overview-section {
    background-color: var(--light-grey);
}

.product-categories-overview {
    display: flex;
    flex-wrap: wrap;
    /* Allows wrapping */
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
    cursor: pointer;
}

.category-overview-item {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    text-align: center;
    width: calc(16.66% - 20px);
    /* Approx 6 items per row */
    min-width: 120px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.category-overview-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.12);
}

.category-overview-item i {
    font-size: 2.5rem;
    color: var(--primary-green);
    margin-bottom: 10px;
}

.category-overview-item span {
    display: block;
    font-size: 0.9rem;
    color: var(--dark-grey);
    font-weight: 500;
}

.btn-explore-products {
    display: inline-block;
    background-color: var(--primary-orange);
    color: white;
    padding: 12px 30px;
    border-radius: 25px;
    font-weight: 500;
    transition: background-color 0.3s ease, transform 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.btn-explore-products:hover {
    background-color: #e69500;
    /* Darker orange */
    transform: translateY(-2px);
}


/* Journey So Far Section */
#journey-section {
    background-color: #fff;
}

.journey-timeline {
    position: relative;
    max-width: 800px;
    margin: 50px auto 0;
}

.journey-timeline::before {
    /* The central line */
    content: '';
    position: absolute;
    width: 4px;
    background-color: var(--primary-green);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
    /* Half of the width */
}

.journey-item {
    padding: 10px 40px;
    position: relative;
    background-color: inherit;
    width: 50%;
    opacity: 0;
    /* For animation */
    transform: translateY(30px);
    /* For animation */
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.journey-item.animate {
    opacity: 1;
    transform: translateY(0);
}

/* Left items */
.journey-item:nth-child(odd) {
    left: 0;
    padding-right: 25px;
    /* Space for the circle */
}

/* Right items */
.journey-item:nth-child(even) {
    left: 50%;
    padding-left: 25px;
    /* Space for the circle */
}

/* The circles on the timeline */
.journey-item::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    right: -10px;
    /* Adjust for circle position */
    background-color: white;
    border: 4px solid var(--primary-orange);
    top: 20px;
    border-radius: 50%;
    z-index: 1;
}

.journey-item:nth-child(even)::after {
    left: -10px;
    /* Adjust for circle position */
}

.journey-content {
    padding: 20px 30px;
    background-color: var(--light-grey);
    position: relative;
    border-radius: 6px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.journey-content h4 {
    color: var(--primary-orange);
    font-size: 1.3rem;
}

.journey-content p {
    font-size: 0.95rem;
}


/* Accreditations Section */
#accreditations-section {
    background-color: var(--light-grey);
}

.accreditations-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
    margin-top: 40px;
}

.accreditation-item {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    text-align: center;
    flex-basis: calc(50% - 20px);
    max-width: 400px;
    transition: transform 0.3s ease;
}

.accreditation-item:hover {
    transform: translateY(-5px);
}

.accreditation-item img {
    max-height: 80px;
    margin-bottom: 20px;
}

.accreditation-item h4 {
    color: var(--primary-green);
    font-size: 1.5rem;
    margin-bottom: 10px;
}


/* Footer */
footer {
    background-color: var(--dark-grey);
    color: #f0f0f0;
    padding: 40px 0;
    text-align: center;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    gap: 20px;
    max-width: var(--max-container-width);
    /* margin: 0 auto var(--container-width); */
    padding-bottom: 30px;
    border-bottom: 1px solid #555;
}

.footer-column {
    flex: 1;
    min-width: 250px;
    text-align: left;
    padding: 0 15px;
}

.footer-column h4 {
    color: var(--primary-orange);
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.footer-column p,
.footer-column a {
    color: #ccc;
    font-size: 0.95rem;
    margin-bottom: 8px;
}

.footer-column a:hover {
    color: var(--primary-green);
}

.footer-copyright {
    margin-top: 30px;
    font-size: 0.9rem;
    color: #aaa;
}


/* Responsive Design */
@media (max-width: 992px) {
    .header-content {
        padding: 0 20px;
    }

    .category-overview-item {
        width: calc(25% - 20px);
        /* 4 items per row */
    }

    .vm-card {
        flex-basis: calc(50% - 15px);
    }
}

@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }

    nav ul {
        display: none;
        /* Hide nav links */
        flex-direction: column;
        position: absolute;
        top: 75px;
        /* Adjust based on header height */
        left: 0;
        width: 100%;
        background-color: white;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
        padding: 10px 0;
    }

    nav ul.active {
        display: flex;
        /* Show when active */
    }

    nav ul li {
        margin: 10px 20px;
        text-align: center;
    }

    .menu-toggle {
        display: block;
        /* Show hamburger icon */
    }

    .carousel-grid {
        grid-template-columns: 1fr;
        /* Stack carousels */
    }

    .carousel-instance {
        height: 200px;
    }

    .vm-card {
        flex-basis: 100%;
        /* Full width on mobile */
    }

    .category-overview-item {
        width: calc(33.33% - 20px);
        /* 3 items per row */
    }

    /* Journey Timeline for Mobile */
    .journey-timeline::before {
        left: 10px;
        /* Move line to the left */
    }

    .journey-item {
        width: 100%;
        padding-left: 50px;
        /* Space for circle and line */
        padding-right: 15px;
    }

    .journey-item:nth-child(odd),
    .journey-item:nth-child(even) {
        left: 0;
    }

    .journey-item::after {
        left: 0px;
        /* Position circle on the line */
    }

    .accreditations-grid {
        flex-direction: column;
        align-items: center;
    }

    .accreditation-item {
        flex-basis: 90%;
        max-width: none;
    }

    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-column {
        text-align: center;
        margin-bottom: 20px;
    }
}

@media (max-width: 576px) {
    .logo-container .company-name {
        font-size: 1.2rem;
    }

    .logo-container img {
        height: 40px;
    }

    .category-overview-item {
        width: calc(50% - 15px);
        /* 2 items per row */
        padding: 15px;
    }

    .category-overview-item i {
        font-size: 2rem;
    }

    .category-overview-item span {
        font-size: 0.85rem;
    }

    .btn-explore-products {
        padding: 10px 25px;
        font-size: 0.9rem;
    }
}