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

body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    color: #333;
    background-color: #f9f9f9;
    overflow-x: hidden; /* Prevent horizontal scrolling */
    box-sizing: border-box; /* Ensure consistent box model */
}

header {
    background-color: #fff;
    color: #77a1bf;
    padding: 1rem 2rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 70px;
    width: auto;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: none; /* Hidden by default */
    align-items: center;
}

nav li {
    margin-left: 2rem;
}

nav a {
    color: #153859;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

nav a:hover {
    color: #77a1bf;
}

/* Hamburger Menu Styles */
.hamburger {
    display: none; /* Hidden by default */
    cursor: pointer;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
}

.hamburger .line {
    width: 100%;
    height: 3px;
    background-color: #153859;
    transition: all 0.3s ease;
}

@media (max-width: 768px) {
    nav {
        position: absolute;
        right: 0;
        top: 70px; /* Adjust based on header height */
        height: calc(100vh - 70px); /* Adjust based on header height */
        background-color: #fff;
        display: none; /* Hidden by default */
        flex-direction: column;
        align-items: center;
        width: 100%;
        transform: translateX(100%);
        transition: transform 0.5s ease-in;
        z-index: 99;
    }

    nav ul {
        display: flex; /* Show on mobile */
        flex-direction: column;
        width: 100%;
        padding-top: 2rem;
    }

    nav li {
        margin: 1.5rem 0;
    }

    .nav-active {
        display: flex; /* Show when active */
        transform: translateX(0%);
    }

    .hamburger {
        display: flex; /* Show on mobile */
    }

    .toggle .line:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }

    .toggle .line:nth-child(2) {
        opacity: 0;
    }

    .toggle .line:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }
}

@media (min-width: 769px) {
    nav ul {
        display: flex; /* Show on desktop */
        flex-direction: row;
    }

    .hamburger {
        display: none; /* Hide on desktop */
    }
}

main {
    padding: 0;
}

/* Hero Slider */
.hero-slider {
    position: relative;
    height: 80vh;
    overflow: hidden;
}

@keyframes zoomInOut {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    transform: scale(1);
}

.slide.active {
    opacity: 1;
    animation: zoomInOut 5s ease-in-out infinite;
}

.slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.slide-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 2rem;
}

.slide-content h1, .slide-content h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 3rem;
    margin-bottom: 1rem;
}

.slide-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    z-index: 2;
    opacity: 0; /* Hidden by default */
    visibility: hidden; /* Hidden by default */
    transition: opacity 0.5s ease-in-out, visibility 0.5s ease-in-out;
}

.slider-nav button {
    background: none;
    border: none;
    color: #77a1bf; /* Reversed normal state */
    font-size: 2rem;
    cursor: pointer;
    padding: 1rem;
}

.slider-nav button:hover {
    color: #153859; /* Reversed hover state */
}

.cta-button {
    display: inline-block;
    background-color: #102c47; /* Reversed normal state */
    color: #fff;
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 1rem;
    transition: background-color 0.3s ease, transform 0.3s ease;
    border: 2px solid transparent;
}

.cta-button:hover {
    background-color: #77a1bf; /* Reversed hover state */
    transform: translateY(-3px);
}

.reversed-cta-button {
    background-color: #77a1bf; /* Normal state */
    color: #fff;
    transition: background-color 0.3s ease, transform 0.3s ease;
    border: 2px solid transparent;
}

.reversed-cta-button:hover {
    background-color: #102c47; /* Normal hover state */
    transform: translateY(-3px);
}

/* Why Choose Us Section */
.why-choose-us {
    background-color: #fff;
    padding: 4rem 2rem;
}

.why-choose-us h2 {
    text-align: center;
    font-family: 'Montserrat', sans-serif;
    font-size: 2rem;
    margin-bottom: 3rem;
}

.reasons {
    display: flex;
    justify-content: space-around;
    gap: 2rem;
    flex-wrap: wrap;
    text-align: center;
}

.reason {
    flex-basis: 25%;
    padding: 1rem;
}

.reason i {
    font-size: 3rem;
    color: #153859;
    margin-bottom: 1rem;
}

.reason h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.highlight-cards, .product-cards {
    display: flex;
    justify-content: space-around;
    gap: 2rem;
    flex-wrap: wrap;
}

.highlight-cards {
    flex-wrap: wrap;
    justify-content: center;
}

.highlight-cards .card {
    flex: 0 0 30%; /* Three columns */
    max-width: 30%; /* Three columns */
}

@media (max-width: 768px) {
    .highlight-cards {
        flex-wrap: wrap; /* Allow wrapping on smaller screens */
        justify-content: center; /* Center cards on smaller screens */
    }

    .highlight-cards .card {
        flex: 0 0 calc(50% - 1rem); /* Two columns on smaller screens */
        max-width: calc(50% - 1rem);
    }
}

@media (max-width: 480px) {
    .highlight-cards .card {
        flex: 0 0 100%; /* One column on very small screens */
        max-width: 100%;
    }
}

.card {
    background-color: #fff;
    padding: 2rem;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    flex-basis: 20%;
    text-align: center;
    transition: transform 0.3s ease, opacity 0.5s ease-out, transform 0.5s ease-out;
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0;
    transform: translateY(20px);
}

.card.visible {
    opacity: 1;
    transform: translateY(0);
}

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

/* Key Highlights Card Improvements */
.card-icon {
    font-size: 3rem;
    color: #153859;
    margin-bottom: 1.5rem;
}

.read-more {
    color: #153859;
    text-decoration: none;
    font-weight: 500;
    margin-top: auto; /* Pushes the link to the bottom */
    padding-top: 1rem;
    transition: color 0.3s ease;
}

.read-more:hover {
    color: #77a1bf;
}

.product-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.product {
    background-color: #fff;
    padding: 2rem;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

footer {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 2rem;
}

/* Contact Page Specific Styles */
.contact-info {
    padding: 4rem 2rem;
    background-color: #f9f9f9;
    text-align: center;
}

.contact-info h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #153859;
}

.contact-info p {
    max-width: 800px;
    margin: 0 auto 2rem auto;
    font-size: 1.1rem;
    line-height: 1.6;
}

.contact-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-container form {
    flex: 1;
    min-width: 300px;
    background-color: #fff;
    padding: 2.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    text-align: left;
}

.contact-container .contact-details {
    flex: 1;
    min-width: 300px;
    background-color: #fff;
    padding: 2.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    text-align: center;
}

/* Form Group Styles */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.6rem;
    font-weight: 600;
    color: #333;
}

.form-group input,
.form-group textarea {
    width: calc(100% - 20px); /* Account for padding */
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #77a1bf;
    outline: none;
}

.contact-container .cta-button {
    width: 100%;
    padding: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    margin-top: 1rem;
    background-color: #102c47; /* Reversed normal state */
    color: #fff; /* Reversed normal state */
}

.contact-container .cta-button:hover {
    background-color: #77a1bf; /* Reversed hover state */
    color: #fff; /* Reversed hover state */
}

/* Contact Details Styles */
.contact-details h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.8rem;
    color: #153859;
    margin-bottom: 1.5rem;
}

.contact-details p {
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 1rem;
    color: #555;
}

.contact-details a {
    color: #153859;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-details a:hover {
    color: #77a1bf;
}

.contact-details .social-icons {
    margin-top: 2rem;
    justify-content: center; /* Align social icons to the center */
}

.contact-details .social-icons a {
    background-color: #eee;
    color: #153859;
}

.contact-details .social-icons a:hover {
    background-color: #ddd;
}

/* Map Container */
.map-container {
    width: 100%;
    height: 450px; /* Adjust height as needed */
    margin-top: 3rem;
    border-radius: 8px;
    overflow: hidden; /* Ensures border-radius applies to iframe */
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* Responsive adjustments for contact.html */
@media (max-width: 768px) {
    .contact-container {
        flex-direction: column;
        gap: 2rem;
    }

    .contact-container form,
    .contact-container .contact-details {
        min-width: unset;
        width: 100%;
    }

    .contact-info {
        padding: 2rem 1rem;
    }

    .contact-info h2 {
        font-size: 2rem;
    }

    .contact-details .social-icons {
        justify-content: center; /* Center social icons on mobile */
    }
}

/* Footer Social Icons */
.footer-content .social-icons a {
    background-color: #555; /* Darker background for icons in footer */
    color: #fff; /* White icons for contrast */
}

.footer-content .social-icons a:hover {
    background-color: #464646;
}

/* General Social Icons Styling */
.social-icons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 0 auto; /* Center the flex container */
    max-width: 200px; /* Limit width to allow margin auto to work */
}

.social-icons a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.social-icons i {
    font-size: 1.5rem;
    line-height: 1;
    margin: 8px;
}

/* Footer Styles */

.footer-content {
    display: flex;
    justify-content: space-around;
    padding: 2rem 0;
    flex-wrap: wrap;
}

.footer-section {
    flex: 1;
    padding: 0 2rem;
    min-width: 250px;
    margin-bottom: 2rem;
}

.footer-section h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.footer-section a {
    color: #fff;
    text-decoration: none;
    display: block;
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.footer-bottom {
    border-top: 1px solid #9cbfe0;
    padding-top: 1rem;
    margin-top: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.footer-section.links ul {
    list-style: none;
    padding: 0;
}

.footer-section.contact {
    text-align: center;
}

.back-to-top {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.back-to-top:hover {
    color: #153859;
}



/* Adjustments for Key Highlights section */
.highlights {
    background-color: #f0f0f0;
    padding: 4rem 4rem 8rem; /* Reduced horizontal padding */
}

.highlights h2 {
    text-align: center;
    font-family: 'Montserrat', sans-serif;
    font-size: 2rem;
    margin-bottom: 3rem;
}

/* Responsive Footer */
@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-section {
        padding: 1rem 0;
    }

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

    .back-to-top {
        margin-top: 1rem;
    }

    /* Why Choose Us Section */
    .reasons {
        flex-direction: column;
        gap: 1rem;
    }

    .reason {
        flex-basis: 100%;
    }

    .highlights {
        background-color: #f0f0f0;
        padding: 4rem 7rem 6rem 3rem;
    }

    /* Our Products Section */
    .highlight-cards {
        flex-direction: column;
        flex-wrap: wrap; /* Allow wrapping */
        gap: 1rem;
    }

    .highlight-cards .card {
        flex: none; /* Remove flex: 1 */
        width: 100%; /* Take full width */
    }
}

/* Navigation Button Style */
.nav-button {
    background-color: #102c47;
    color: #fff !important;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.nav-button:hover {
    background-color: #77a1bf;
    color: #fff !important;
}

/* Slider Dots */
.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    gap: 10px;
}

.dot {
    width: 12px;
    height: 12px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.dot.active {
    background-color: #153859; /* Primary color */
}

/* New styles for about.html improvements */

/* About Project Section */
.about-project {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start; /* Align items to the start */
    gap: 2rem;
    padding: 4rem 4rem;
    background-color: #fff;
}

.about-content {
    flex: 1;
    min-width: 300px;
}

.about-image {
    flex: 1;
    min-width: 300px;
    text-align: center;
}

.about-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Our Commitment Section */
.our-commitment {
    padding: 4rem 4rem;
    background-color: #fff;
}

.our-commitment h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: center;
}

.our-commitment p {
    max-width: 800px;
    margin: 0 auto 3rem auto;
    text-align: center;
    line-height: 1.6;
}

.sustainability-pillars {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.pillar-item {
    background-color: #f9f9f9;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.pillar-item i {
    font-size: 3.5rem;
    color: #153859;
    margin-bottom: 1rem;
}

.pillar-item h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5rem;
    margin-bottom: 0.8rem;
    color: #153859;
}

.pillar-item p {
    font-size: 1rem;
    line-height: 1.6;
    text-align: center;
    margin-bottom: 0; /* Remove default paragraph margin */
}

/* Call to Action Section */
.cta-section {
    background-color: #153859; /* Primary color */
    color: #fff;
    padding: 4rem 2rem;
    text-align: center;
}

.cta-section h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.cta-section p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Responsive adjustments for about.html */
@media (max-width: 768px) {
    .about-project {
        flex-direction: column;
        padding: 2rem;
    }

    .our-commitment {
        padding: 2rem;
    }

    .cta-section h2 {
        font-size: 2rem;
    }

    .cta-section p {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .about-project {
        padding: 1.5rem;
    }

    .our-commitment {
        padding: 1.5rem;
    }

    .cta-section {
        padding: 2rem 1.5rem;
    }
}

/* Products Page Specific Styles */
.product-intro {
    background-color: #f0f0f0;
    padding: 4rem 2rem;
    text-align: center;
}

.product-intro p {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.6;
}

.products {
    padding: 4rem 2rem;
    background-color: #fff;
}

.products h2 {
    text-align: center;
    font-family: 'Montserrat', sans-serif;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #153859;
}

.product-details {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.product {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column; /* Stack h3 and product-body */
    align-items: flex-start;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    padding: 2rem;
}

.product:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.15);
}

.product-left {
    /* flex-direction: row; is now on .product-body */
}

.product-right {
    /* flex-direction: row-reverse; is now on .product-body */
}

.product-left img {
    margin-right: 2rem;
}

.product-right img {
    margin-left: 2rem;
}

.product-body {
    display: flex;
    align-items: flex-start;
    margin-top: 1rem;
    width: 100%; /* Ensure it takes full width */
}

.product-left .product-body {
    flex-direction: row;
}

.product-right .product-body {
    flex-direction: row-reverse;
}

.product img {
    width: 35%; /* Make image width more flexible */
    height: auto;
    border-radius: 5px;
    margin-bottom: 0;
    flex-shrink: 0;
}

.product h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.8rem;
    color: #153859;
    margin-bottom: 1rem;
    text-align: left;
}

.product-content {
    flex: 1; /* Allow content to take remaining space */
    padding-left: 0; /* Removed padding */
    padding-right: 0; /* Removed padding */
}

.product p {
    font-size: 1rem;
    line-height: 1.6;
    color: #555;
    margin-bottom: 1.5rem;
}

.product ul {
    list-style: none;
    padding: 0;
    width: 100%;
}

.product li {
    background-color: #eef4f8;
    padding: 0.5rem 1rem;
    margin-bottom: 0.5rem;
    border-radius: 3px;
    color: #153859;
    font-size: 0.95rem;
    text-align: left;
}

.product-cta {
    background-color: #153859; /* Primary color */
    color: #fff;
    padding: 4rem 2rem;
    text-align: center;
}

.product-cta h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.product-cta p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Responsive adjustments for products.html */
@media (max-width: 768px) {
    .product-intro, .products, .product-cta {
        padding: 2rem 1rem;
    }

    .products h2, .product-cta h2 {
        font-size: 2rem;
    }

    .product-details {
        grid-template-columns: 1fr; /* Single column on smaller screens */
    }

    .product img {
        height: 180px;
    }

    .product-body {
        flex-direction: column; /* Stack image and content */
        flex-wrap: wrap; /* Ensure wrapping for stacking */
        width: 100%; /* Ensure it takes full width */
    }

    .product-left .product-body,
    .product-right .product-body {
        flex-direction: column; /* Override row/row-reverse for stacking */
    }

    .product img {
        width: 100%;
        margin-left: 0;
        margin-right: 0;
        margin-bottom: 1.5rem;
    }

    .product-content {
        width: 100%;
        padding-left: 0;
        padding-right: 0;
    }
}

@media (max-width: 480px) {
    .product-intro p, .product-cta p {
        font-size: 1rem;
    }

    .product h3 {
        font-size: 1.5rem;
        text-align: center;
    }

    .product li {
        font-size: 0.9rem;
    }

    .product-body {
        flex-direction: column; /* Stack image and content */
        flex-wrap: wrap; /* Ensure wrapping for stacking */
    }

    .product img {
        width: 100%;
        margin-left: 0;
        margin-right: 0;
        margin-bottom: 1.5rem; /* Add margin below image */
    }

    .product-content {
        width: 100%;
        padding-left: 0;
        padding-right: 0;
    }
}

/* Our Team Section */
.our-team {
    padding: 4rem 2rem;
    background-color: #f9f9f9;
}

.our-team h2 {
    text-align: center;
    font-family: 'Montserrat', sans-serif;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #153859;
}

.team-members {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.team-member {
    background-color: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-member:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.15);
}

.team-member img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    object-position: 50% 20%;
    margin-bottom: 1.5rem;
    border: 4px solid #153859;
}

.team-member h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #153859;
}

.team-member h4 {
    font-family: 'Roboto', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    color: #77a1bf;
    margin-bottom: 1rem;
}

.team-member p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #555;
    text-align: left;
}
