/* Global Resets and Base Styles */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px; /* Base font size */
}

body {
    font-family: 'Roboto', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.7;
    background-color: #f8f9fa; /* Light grey background for the entire page */
    color: #343a40; /* Dark grey for text */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden; /* Prevent horizontal scroll */
}

.site-wrapper {
    width: 100%;
    max-width: 1600px; /* Max width for content, adjust as needed */
    margin: 0 auto;
    background-color: #ffffff; /* White background for the main content area */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.07);
    overflow: hidden; /* Contains floats and prevents margin collapse */
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', 'Poppins', sans-serif; /* A more modern, display-oriented font */
    color: #2c3e50; /* Darker, slightly desaturated blue */
    margin-bottom: 0.75em;
    line-height: 1.3;
    font-weight: 700;
}

.main-heading-h1 {
    font-size: clamp(2.5rem, 5vw, 4rem); /* Responsive font size */
    color: #ffffff; /* White text for hero section */
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.4);
    margin-bottom: 0.5em;
}

.section-title-h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    text-align: center;
    margin-bottom: 1.5em;
    position: relative;
    padding-bottom: 0.5em;
}

.section-title-h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #FF6700, #008080); /* Gradient accent */
    border-radius: 2px;
}

.section-subheading-h3 {
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    color: #005F73; /* Primary Teal */
    text-align: center;
    margin-bottom: 1.2em;
}

p, li, a {
    font-size: clamp(0.95rem, 1.5vw, 1.1rem); /* Responsive paragraph text */
    color: #555e68; /* Slightly lighter grey for readability */
    margin-bottom: 1em;
}

a {
    color: #008080; /* Teal for links */
    text-decoration: none;
    transition: color 0.3s ease, opacity 0.3s ease;
}

a:hover, a:focus {
    color: #FF6700; /* Orange for hover */
    opacity: 0.85;
    text-decoration: underline;
}

.text-link {
    font-weight: bold;
    color: #FF8C00; /* Distinct color for specific text links */
}

.text-link:hover {
    color: #FF6700;
}

/* Header Styles */
.main-header {
    background-color: rgba(255, 255, 255, 0.95); /* Slightly transparent white */
    backdrop-filter: blur(10px); /* Frosted glass effect */
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border-bottom: 1px solid #e9ecef;
}

.header-container {
    width: 90%;
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-anchor .site-logo-img {
    height: 60px; /* Fixed height for logo */
    width: auto;   /* Auto width to maintain aspect ratio */
    display: block;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.logo-anchor:hover .site-logo-img {
    transform: scale(1.05) rotate(-3deg);
}

/* Navigation Menu */
.main-navigation .nav-list {
    list-style: none;
    display: flex;
    gap: 10px; /* Spacing between main menu items */
}

.main-navigation .nav-item {
    position: relative;
}

.main-navigation .nav-link {
    display: block;
    padding: 15px 20px;
    color: #2c3e50;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    transition: color 0.3s ease, background-color 0.3s ease;
    border-radius: 5px;
}

.main-navigation .nav-link:hover,
.main-navigation .nav-link:focus,
.main-navigation .nav-item:hover > .nav-link { /* Highlight parent when dropdown is active */
    color: #ffffff;
    background-color: #008080; /* Teal background on hover */
    text-decoration: none;
}

/* Dropdown Menu Styles */
.has-dropdown .dropdown-menu {
    list-style: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    min-width: 240px;
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    border-radius: 0 0 8px 8px;
    z-index: 999;
}

.nav-item.has-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu .dropdown-link {
    display: block;
    padding: 10px 20px;
    color: #343a40;
    font-size: 0.9rem;
    white-space: nowrap;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.dropdown-menu .dropdown-link:hover,
.dropdown-menu .dropdown-link:focus {
    background-color: #f1f1f1;
    color: #005F73;
    text-decoration: none;
}

/* Main Content Sections */
#main-content section {
    padding: 80px 5%; /* Vertical padding and horizontal padding for responsiveness */
    overflow: hidden; /* For animations and layout */
}

.section-container {
    width: 100%;
    max-width: 1200px; /* Constrain content width within sections */
    margin: 0 auto;
}

.section-paragraph {
    font-size: clamp(1rem, 1.8vw, 1.15rem);
    line-height: 1.8;
    color: #495057;
    margin-bottom: 1.5em;
    max-width: 800px; /* For better readability of long text blocks */
    margin-left: auto;
    margin-right: auto;
    text-align: justify; /* Justify for a cleaner look, use with caution */
}

.section-paragraph:last-child {
    margin-bottom: 0;
}

/* Gradient Backgrounds */
.gradient-background-1 {
    background: linear-gradient(135deg, #005F73 0%, #008080 50%, #00A896 100%);
    color: #ffffff;
}
.gradient-background-1 p, .gradient-background-1 a { color: #e0f2f1; }
.gradient-background-1 a:hover { color: #ffffff; }

.gradient-background-2 {
    background: #fdfdfd; /* Off-white for subtle contrast */
}

.gradient-background-3 {
    background: linear-gradient(to right bottom, #e0f7fa, #e8f5e9, #f1f8e9, #f9fbe7, #fffde7);
}

.gradient-background-4 {
    background-color: #f8f9fa;
}

/* Hero Section Specifics */
.hero-section {
    min-height: 70vh; /* Make hero section taller */
    display: flex;
    align-items: center;
    text-align: center;
    padding-top: 100px;
    padding-bottom: 100px;
}

.project-development-notice {
    font-size: clamp(0.9rem, 1.5vw, 1rem);
    background-color: rgba(255, 255, 255, 0.15);
    padding: 15px 20px;
    border-radius: 8px;
    margin: 20px auto 30px;
    max-width: 700px;
    backdrop-filter: blur(5px);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}
.project-development-notice a { color: #FFEB3B; font-weight: bold;}
.project-development-notice a:hover { color: #FFFDE7; }

.hero-image-gallery {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    margin-bottom: 40px;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.hero-image-gallery .gallery-image {
    width: 100%;
    max-width: 250px; /* Control image size */
    height: auto;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
    border: 3px solid rgba(255, 255, 255, 0.5);
}

.hero-image-gallery .gallery-image:hover {
    transform: scale(1.08) translateY(-10px) rotate(2deg);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

/* Product Showcase Section */
.product-image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* Responsive grid */
    gap: 30px;
    margin-bottom: 40px;
}

.product-image-grid .grid-image {
    width: 100%;
    height: 300px; /* Fixed height for consistency */
    object-fit: cover; /* Crop to fit */
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(44, 62, 80, 0.12);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.product-image-grid .grid-image:hover {
    transform: scale(1.03) translateY(-5px);
    box-shadow: 0 12px 28px rgba(44, 62, 80, 0.18);
}

/* Services Experience Section */
.services-image-layout {
    display: flex;
    gap: 25px;
    margin-bottom: 35px;
    align-items: flex-start; /* Align items to the top */
}

.services-image-layout .layout-image-main {
    flex: 2; /* Main image takes more space */
    width: 60%;
    max-height: 500px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.services-image-layout .layout-image-sub {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    width: 40%;
}

.services-image-layout .layout-image-sub img {
    width: 100%;
    height: 150px; /* Consistent height for sub-images */
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: filter 0.3s ease;
}
.services-image-layout .layout-image-sub img:hover {
    filter: brightness(1.1) saturate(1.2);
}

.additional-images-services {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.additional-images-services .service-img-small {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.1);
    opacity: 0.9;
    transition: opacity 0.3s ease, transform 0.3s ease;
}
.additional-images-services .service-img-small:hover {
    opacity: 1;
    transform: scale(1.04);
}

/* Community & Knowledge Section */
.community-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.community-gallery .community-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 10px;
    transition: all 0.4s ease;
    filter: grayscale(30%);
}

.community-gallery .community-img:hover {
    filter: grayscale(0%);
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 95, 115, 0.2); /* Teal shadow */
}

/* Final Image Grid (Dense Grid) */
.final-image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); /* Smaller images */
    gap: 10px;
    margin-top: 40px;
}

.final-image-grid img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 6px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.final-image-grid img:hover {
    opacity: 0.8;
    transform: scale(1.1);
    z-index: 10; /* Bring hovered image to front */
    position: relative;
}

/* Contact Form Section */
.contact-form-section {
    background: linear-gradient(45deg, #005F73, #008080);
    padding: 60px 5%;
}

.contact-form-section .section-subheading-h3 {
    color: #ffffff;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.2);
}

.main-contact-form {
    max-width: 700px;
    margin: 0 auto;
    background-color: rgba(255, 255, 255, 0.9);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid #ced4da;
    border-radius: 6px;
    font-size: 1rem;
    color: #495057;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: #008080; /* Teal focus border */
    box-shadow: 0 0 0 0.2rem rgba(0, 128, 128, 0.25);
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

.form-submit-button {
    display: block;
    width: 100%;
    padding: 15px 20px;
    background: linear-gradient(90deg, #FF6700, #FF8C28); /* Orange gradient button */
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1.1rem;
    font-weight: bold;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-position 0.5s ease, transform 0.2s ease, box-shadow 0.3s ease;
    background-size: 200% auto;
    box-shadow: 0 5px 15px rgba(255, 103, 0, 0.3);
}

.form-submit-button:hover {
    background-position: right center; /* Change gradient direction */
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 103, 0, 0.4);
}

/* Partners Section */
.partners-section {
    background-color: #f1f3f5; /* Light grey for distinct section */
}
.partners-section .section-subheading-h3 {
    color: #343a40;
}
.partners-intro {
    text-align: center;
    max-width: 750px;
    margin-bottom: 2.5em;
}

.partner-list {
    list-style: none;
    padding: 0;
    max-width: 900px;
    margin: 0 auto;
}

.partner-item {
    background-color: #ffffff;
    padding: 20px 25px;
    margin-bottom: 15px;
    border-radius: 8px;
    border-left: 5px solid #008080; /* Teal accent border */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.partner-item:hover {
    transform: translateX(5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.partner-link-dofollow {
    font-weight: 600;
    color: #005F73;
    position: relative;
    padding-bottom: 2px;
}
.partner-link-dofollow::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: #FF6700;
    transition: width 0.3s ease;
}
.partner-link-dofollow:hover::after {
    width: 100%;
}
.partner-link-dofollow:hover {
    color: #FF6700;
    text-decoration: none;
}


/* Footer Styles */
.main-footer {
    background-color: #2c3e50; /* Dark blue-grey footer */
    color: #bdc3c7; /* Light grey text for footer */
    padding: 60px 5% 20px;
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid #34495e;
}

.footer-column {
    flex: 1;
    min-width: 250px; /* Ensure columns don't get too narrow */
}

.footer-column h4 {
    color: #ffffff; /* White headings in footer */
    font-size: 1.2rem;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    padding-bottom: 10px;
}
.footer-column h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, #00A896, #FF8C28);
}

.footer-column p {
    color: #ecf0f1;
    font-size: 0.95rem;
    line-height: 1.8;
}

.footer-column ul {
    list-style: none;
    padding: 0;
}

.footer-column ul li a {
    color: #bdc3c7;
    font-size: 0.95rem;
    padding: 5px 0;
    display: inline-block;
    transition: color 0.3s ease, padding-left 0.3s ease;
}

.footer-column ul li a:hover {
    color: #ffffff;
    padding-left: 8px;
    text-decoration: none;
}

.social-links a {
    display: inline-block;
    color: #bdc3c7;
    margin-right: 15px;
    font-size: 1.5rem; /* Larger social icons */
    transition: color 0.3s ease, transform 0.3s ease;
}

.social-links a:hover {
    color: #00A896; /* Teal accent for social hover */
    transform: scale(1.2) rotate(5deg);
    text-decoration: none;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
}

.footer-bottom p {
    font-size: 0.9rem;
    color: #95a5a6; /* Even lighter grey for bottom text */
    margin-bottom: 0.5em;
}

.footer-credits-link {
    color: #00A896; /* Teal accent */
    font-weight: bold;
}
.footer-credits-link:hover {
    color: #ffffff;
}

/* Responsive Adjustments */
@media (max-width: 1200px) {
    .services-image-layout {
        flex-direction: column;
    }
    .services-image-layout .layout-image-main,
    .services-image-layout .layout-image-sub {
        width: 100%;
    }
    .services-image-layout .layout-image-sub {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); /* Adjust sub-image grid */
    }
}


@media (max-width: 992px) {
    .main-navigation {
        /* Basic mobile menu toggle placeholder - requires JS for full functionality */
        /* display: none; */ /* Initially hide on mobile, show via JS */
        /* Consider a hamburger menu implementation */
    }
    .main-navigation .nav-list {
        flex-direction: column; /* Stack menu items on mobile if shown */
        width: 100%;
        gap: 0;
        text-align: center;
    }
    .main-navigation .nav-link {
        padding: 12px 15px;
        border-bottom: 1px solid #eee;
    }
     .main-navigation .nav-item.has-dropdown:hover .dropdown-menu {
        position: static; /* Dropdowns flow naturally in column layout */
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        padding-left: 20px; /* Indent dropdown items */
    }
    .dropdown-menu .dropdown-link {
        padding: 8px 15px;
    }

    .hero-image-gallery .gallery-image {
        max-width: 200px;
    }
    .footer-container {
        flex-direction: column;
        text-align: center;
    }
    .footer-column h4::after {
        left: 50%;
        transform: translateX(-50%);
    }
}

@media (max-width: 768px) {
    .main-heading-h1 { font-size: 2.2rem; }
    .section-title-h2 { font-size: 1.8rem; }
    .section-subheading-h3 { font-size: 1.4rem; }
    #main-content section { padding: 60px 3%; }

    .hero-image-gallery {
        gap: 15px;
    }
    .hero-image-gallery .gallery-image {
        max-width: 160px; /* Further reduce size */
    }

    .product-image-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
    }
    .product-image-grid .grid-image {
        height: 250px;
    }
    .community-gallery {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
    .community-gallery .community-img {
        height: 200px;
    }
    .final-image-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 8px;
    }
    .final-image-grid img {
        height: 120px;
    }
     .main-contact-form {
        padding: 30px;
    }
}

@media (max-width: 576px) {
    .header-container {
        flex-direction: column;
        gap: 15px;
    }
    .logo-anchor .site-logo-img {
        height: 50px;
    }
    .hero-image-gallery {
        flex-direction: column;
        align-items: center;
    }
    .hero-image-gallery .gallery-image {
        max-width: 80%; /* Single column, larger */
    }
    .final-image-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    }
    .final-image-grid img {
        height: 100px;
    }
}

/* Utility Classes for Animations (Simple Example) */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-up.is-visible { /* Add .is-visible with JS on scroll */
    opacity: 1;
    transform: translateY(0);
}