@font-face {
    font-family: Poppins;
    src: url(../fonts/Poppins-Regular.ttf) format("truetype");
}

header {
    display: flex;
    justify-content: space-between;
    padding: 20px 10px;

}

html {
    height: 100%;
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    margin: 0;
    height: 100%;
    background-color: #174ea9;
}

a {
    text-decoration: none;
}

* {
    font-family: Poppins, serif;
}

.links {
    align-items: center;
    display: flex;
    justify-content: center;
    width: 100%;
}

.header-link {
    margin: 0 30px;
    cursor: pointer;
    color: white;
}


.header-link::after {
    content: '';
    display: block;
    width: 0;
    height: 2px;
    background: white;
    transition: width .2s ease-in;
}

.header-link:hover::after {
    width: 100%;
}

.header-link.active::after {
    width: 100%;
}

.partners {
    display: flex;
    align-items: center;
    justify-content: center;
}

.actions {
    display: flex;
    justify-content: center;
    align-items: center;
}

.header-cta {
    width: 125px;
    height: 25px;
    border: 1px white solid;
    border-radius: 40px;
    padding: 14px;
    color: white;
    text-align: center;
    transition: background-color 0.5s;
    cursor: pointer;
}


.logo-text {
    color: white;
    margin-left: 6px;
}

.hero {
    text-align: center;
}

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

.outline-label {
    font-family: 'Poppins' !important;
}

md-outlined-text-field {
    font-family: 'Poppins' !important;
}

.hero {
    width: 99%;
    min-height: 98%;
    background-color: white;
    margin: auto;
    border-radius: 30px;
    padding-top: 150px;
}

.logo {
    filter: brightness(0) invert(1);
}

.header-cta:hover {
    background-color: white;
    color: #174ea9;
}

.hero-heading {
    font-size: 3.5em;
    color: #174ea9;
    margin: 0;
}

.hero-sub {
    font-size: 20px;
}

.hero-cta {
    width: 140px;
    height: 25px;
    margin: auto;
    background: #174ea9;
    padding: 20px;
    border-radius: 50px;
    color: white;
    border: 1px white solid;
    transition: background-color 0.5s, border-color 0.5s, color 0.5s;
    cursor: pointer;
}

.hero-cta:hover {
    background-color: white;
    border-color: #174ea9;
    color: #174ea9;
}

.splide {
    margin-top: 30px;
}

img.hero-slider-img {
    border-radius: 20px;
    margin: 10px
}

.splide__pagination__page.is-active {
    background: #174ea9 !important;
}

.slide-content {
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    width: 800px;
    height: 500px;
    border-radius: 20px;
}

.caption .blur {
    opacity: 0;
    background-color: rgba(0, 0, 0, 0.3);
    position: absolute;
    width: 800px;
    height: 500px;
    border-radius: 20px;
}

/* Make sure the container is relative so the popup is positioned correctly */
.solutions-container {
    display: flex;
}

.products-container {
    display: flex;
}

.applications-container {
    display: flex;
}

/* Popup styles */
.popup {
    position: absolute;
    background: white;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
    padding: 15px;
    border-radius: 5px;
    width: 1000px; /* Adjust width for better layout */
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Show popup when active */
.popup.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(5px); /* Smooth slide down */
}

/* Mega menu grid layout */
.mega-menu {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 15px;
}

.category {
    flex: 1;
    min-width: 200px;
}

.category h3 {
    margin-bottom: 10px;
}

.category ul {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); /* Forces horizontal alignment */
    gap: 10px;
    list-style: none;
    padding: 0;
}

.category h3 {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 8px;
    color: #333;
}

.category ul li {
    font-size: 14px;
    margin-bottom: 5px;
    padding: 5px 10px;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

/* Hover effect for menu items */
.category ul li:hover {
    background-color: #174ea9; /* Blue highlight */
    color: white;
}

.caption {
    position: absolute;
    text-align: center;
    transition: opacity 0.5s;
    opacity: 0;
    display: flex;
    color: white;
    justify-content: center;
    align-items: center;
}


.caption-text {
    z-index: 5;
}

.slide-content:hover .caption {
    opacity: 1;
}

.slide-content:hover .caption .blur {
    opacity: 1;

}

.slide-content:hover img {
    transform: scale(1.15, 1.15);
    -webkit-transform: scale(1.15, 1.15);
    -moz-transform: scale(1.15, 1.15);
    -ms-transform: scale(1.15, 1.15);
    -o-transform: scale(1.15, 1.15);
    -webkit-transition: all 0.25s ease-in-out;
    -moz-transition: all 0.25s ease-in-out;
    -o-transition: all 0.25s ease-in-out;
    -ms-transition: all 0.25s ease-in-out;
    transition: all 0.25s ease-in-out;
}

.collab {
    text-align: center;
}

.collab-heading {
    color: white;
}

img.partner-img {
    filter: brightness(0) invert(1);
}

.partners img {
    height: 70px;
    margin: 15px;
}

.splide__track {
    border-radius: 30px;
}

.contact {
    background-color: white;
    padding: 10px;
    width: 99%;
    margin: auto;
    text-align: center;
}

.contact-heading {
    color: white;
    color: #174ea9;
}

.meet {
    color: white;
    text-align: center;
    margin-top: 45px;
}


.meet-heading {
    font-size: 2.5em;
}

.meet-content {
    font-size: 18px;
}

.about-us-chip {
    border-radius: 30px;
    border: 1px solid white;
    width: 100px;
    padding: 10px;
    margin: auto;
}

.footer {
    background-color: #333;
    color: #fff;
    padding: 2rem 1rem;
    font-family: Arial, sans-serif;
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-section {
    flex: 1 1 calc(33.33% - 2rem);
    margin: 0 1rem;
    min-width: 200px;
}

.footer-section h4 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.footer-section p,
.footer-section ul {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.5;
}

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

.footer-links li {
    margin: 0.5rem 0;
}

.footer-links a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #fff;
}

.footer-bottom {
    text-align: center;
    margin-top: 2rem;
    font-size: 0.8rem;
    color: #ccc;
}

.footer-bottom p {
    margin: 0;
}

/* Improved popup transitions */
.popup {
    position: absolute;
    background: white;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
    padding: 15px;
    border-radius: 5px;
    width: 1000px;
    top: 75px;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s linear 0.2s;
}

.popup.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s linear 0s;
}

/* Ensure the container has enough bottom padding to prevent flickering */
.solutions-container,
.products-container,
.applications-container {
    display: flex;
}

#learn-more-btn {
    width: 125px;
    height: 8px;
    margin: auto;
    background: #174ea9;
    padding: 20px;
    border-radius: 50px;
    color: white;
    border: 1px #174ea9 solid;
    transition: background-color 0.5s, border-color 0.5s, color 0.5s;
    cursor: pointer;
    text-align: center;
    align-content: center;
    align-items: center;
    display: flex;
}

#learn-more-btn:hover {
    background-color: white;
    color: #174ea9;
}

#learn-more-link {
    margin: 0;
    width: 140px;
    display: block;
}

/* Hierarchical menu styles */
.category {
    position: relative;
    padding: 10px 0;
}

.subcategory-indicator {
    margin-left: 5px;
    color: #666;
}

.subcategory-wrapper {
    margin-top: 10px;
}

.subcategory-item {
    padding: 8px 15px;
    cursor: pointer;
    color: #174ea9;
    font-weight: bold;
    position: relative;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.subcategory-item:hover {
    background-color: #f0f0f0;
}

.sub-popup {
    position: absolute;
    left: 100%;
    top: 0;
    background: white;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    border-radius: 5px;
    padding: 15px;
    width: 300px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, visibility 0s linear 0.2s;
    z-index: 1001;
}

.sub-popup.active {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.2s;
}

/* Mobile responsive styles */
@media (max-width: 768px) {
    .links {
        flex-direction: column;
        align-items: flex-start;
    }

    .products-container,
    .applications-container,
    .solutions-container {
        width: 100%;
        position: relative;
    }

    .popup {
        position: static;
        width: 100%;
        transform: none;
        box-shadow: none;
        padding: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .popup.active {
        max-height: 1000px;
        transform: none;
    }

    .mega-menu {
        flex-direction: column;
        padding: 10px;
    }

    .category {
        margin-left: 0 !important;
    }

    .sub-popup {
        position: static;
        width: 100%;
        box-shadow: none;
        padding: 0 0 0 15px;
        opacity: 1;
        visibility: visible;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .subcategory-item.active .sub-popup {
        max-height: 1000px;
    }

    .subcategory-item {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
}


/* Smooth transitions for menu appearance */
.products-container,
.applications-container,
.solutions-container {
    opacity: 1;
    transition: opacity 0.3s ease;
}

/* Loading states for menus */
.loading-menu {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    color: #666;
    text-align: center;
}

.loading-menu md-circular-progress {
    margin-bottom: 10px;
}

.error-menu {
    padding: 20px;
    text-align: center;
    color: #d32f2f;
    background-color: #ffebee;
    border-radius: 4px;
    margin: 10px;
}

/* Ensure menus don't jump around */
.popup {
    min-height: 200px;
}

.mega-menu {
    min-height: 150px;
}

.partners {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    padding: 20px;
    border-radius: 12px;
}

.partners img {
    flex: 1 1 200px;
    max-width: 250px;
    height: 150px;
    object-fit: contain;
    padding: 15px;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.partners img:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    background: #e9ecef;
}

.info {
    margin-top: 40px;
    text-align: center;
    padding: 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.info h2 {
    color: #2c3e50;
    margin-bottom: 15px;
}

.info p {
    max-width: 800px;
    margin: 0 auto 20px;
    color: #555;
}

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

    .partners {
        gap: 15px;
        padding: 15px;
    }

    .partners img {
        flex: 1 1 150px;
        max-width: 180px;
        height: 120px;
    }
}

@media (max-width: 480px) {
    body {
        padding: 10px;
    }

    .partners {
        gap: 10px;
        padding: 10px;
    }

    .partners img {
        flex: 1 1 120px;
        max-width: 140px;
        height: 100px;
        padding: 10px;
    }
}

/* Hamburger Menu Styles */
.hamburger-menu {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    gap: 4px;
    z-index: 10000;
}

.hamburger-menu span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: white;
    transition: all 0.3s ease;
}

.hamburger-menu.active {
    position: fixed;
    right: 10px;
}

.hamburger-menu.active span {
    background-color: black !important;
}

.hamburger-menu.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.hamburger-menu.active span:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile Styles */
@media (max-width: 768px) {
    .hamburger-menu {
        display: flex;
    }

    #learn-more-btn {
        display: none;
    }

    .links {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        height: 100%;
        padding: 1rem;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        display: none;
        z-index: 1000;
    }

    .links.active {
        display: flex;
    }

    .popup {
        display: none !important;
    }

    .header-link {
        padding: 12px 0;
        border-bottom: 1px solid #f0f0f0;
        width: 100%;
        color: black !important;
    }

    .products-container,
    .applications-container,
    .solutions-container {
        width: 100%;
    }

    .actions {
        margin-left: auto;
    }
}

/* About Page Styles */
.about-hero {
    background: linear-gradient(135deg, #174ea9 0%, #2d6bc6 100%);
    color: white;
    padding: 120px 20px 80px;
    text-align: center;
    margin-bottom: 40px;
}

.about-hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.about-hero-heading {
    font-size: 3.5em;
    margin: 0 0 20px 0;
    font-weight: 600;
}

.about-hero-sub {
    font-size: 1.3em;
    margin: 0;
    opacity: 0.9;
}

.about-gallery-section {
    background: white;
    padding: 60px 20px;
    margin: 0 auto 40px;
    width: 99%;
    border-radius: 30px;
}

.about-container {
    max-width: 1200px;
    margin: 0 auto;
}

.about-intro {
    text-align: center;
    margin-bottom: 50px;
}

.about-intro h2 {
    font-size: 2.5em;
    color: #174ea9;
    margin-bottom: 15px;
}

.about-intro p {
    font-size: 1.2em;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

.about-gallery {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    margin-bottom: 50px;
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
}

.about-photo-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    cursor: pointer;
    width: 100%;
    max-width: 900px;
    border: 1px solid #e0e0e0;
}

.about-photo-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.about-photo-image {
    width: 100%;
    height: auto;
    aspect-ratio: 1/1.414; /* A4 aspect ratio */
    object-fit: contain;
    background: #f8f9fa;
    display: block;
}

.about-photo-content {
    padding: 20px;
    border-top: 1px solid #f0f0f0;
}

.about-photo-title {
    font-size: 1.3em;
    color: #174ea9;
    margin: 0 0 10px 0;
    font-weight: 600;
}

.about-photo-description {
    color: #666;
    line-height: 1.6;
    margin: 0;
    font-size: 0.95em;
}

/* Lightbox adjustments for portrait images */
.about-lightbox-content {
    max-width: 90%;
    max-height: 90%;
    position: relative;
}

.about-lightbox-image {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    background: #f8f9fa;
    border-radius: 4px;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .about-gallery {
        gap: 30px;
        padding: 0 15px;
    }

    .about-photo-card {
        max-width: 100%;
    }

    .about-photo-content {
        padding: 15px;
    }

    .about-photo-title {
        font-size: 1.2em;
    }
}

.about-photo-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.about-photo-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.about-photo-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
}

.about-photo-content {
    padding: 25px;
}

.about-photo-title {
    font-size: 1.4em;
    color: #174ea9;
    margin: 0 0 10px 0;
    font-weight: 600;
}

.about-photo-description {
    color: #666;
    line-height: 1.6;
    margin: 0;
}

.gallery-loading,
.gallery-empty {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.gallery-loading md-circular-progress {
    margin-bottom: 15px;
}

.gallery-empty md-icon {
    margin-bottom: 15px;
}

.about-values {
    background: #f8f9fa;
    padding: 80px 20px;
    text-align: center;
}

.about-values h2 {
    font-size: 2.5em;
    color: #174ea9;
    margin-bottom: 50px;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

.value-card {
    background: white;
    padding: 40px 30px;
    border-radius: 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

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

.value-card h3 {
    color: #174ea9;
    margin: 20px 0 15px 0;
    font-size: 1.4em;
}

.value-card p {
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/* Lightbox Styles */
.about-lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 10000;
    justify-content: center;
    align-items: center;
}

.about-lightbox.active {
    display: flex;
}

.about-lightbox-content {
    max-width: 90%;
    max-height: 90%;
    position: relative;
}

.about-lightbox-image {
    max-width: 100%;
    max-height: 90vh;
    border-radius: 10px;
}

.about-lightbox-close {
    position: absolute;
    top: -50px;
    right: 0;
    background: none;
    border: none;
    color: white;
    font-size: 2em;
    cursor: pointer;
    padding: 10px;
}

.about-lightbox-caption {
    position: absolute;
    bottom: -60px;
    left: 0;
    right: 0;
    text-align: center;
    color: white;
}

.about-lightbox-title {
    font-size: 1.4em;
    margin-bottom: 5px;
}

.about-lightbox-description {
    opacity: 0.8;
}

/* Responsive Design */
@media (max-width: 768px) {
    .about-hero-heading {
        font-size: 2.5em;
    }

    .about-hero-sub {
        font-size: 1.1em;
    }

    .about-gallery {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .about-intro h2 {
        font-size: 2em;
    }

    .about-values h2 {
        font-size: 2em;
    }

    .values-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .value-card {
        padding: 30px 20px;
    }
}

@media (max-width: 480px) {
    .about-hero {
        padding: 100px 15px 60px;
    }

    .about-hero-heading {
        font-size: 2em;
    }

    .about-gallery-section {
        padding: 40px 15px;
    }

    .about-photo-content {
        padding: 20px;
    }
}

.category h3 {
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
    padding: 8px 12px;
    border-bottom: 1px solid #eee;
}

.items-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.items-list li {
    padding: 8px 12px;
    margin: 2px 0;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.items-list li:hover {
    background-color: #f5f5f5;
}

.root-items-list {
    /* Remove any special styling for root items */
    list-style: none;
    padding: 0;
    margin: 0;
}