/* Basic Resets & Typography */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans', Arial, sans-serif;
    line-height: 1.6;
    color: #000; /* Changed to black for white background */
    background-color: #fff; /* Changed to white */
    overflow-x: hidden;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0;
}

/* Header */
header {
    background: #fff; /* Changed to white */
    padding: 12px 0;
    border-bottom: 1px solid #eee;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

header .container {
    display: flex;
    justify-content: space-between; /* Changed for mobile layout */
    align-items: center;
    padding: 8px 0;
}

/* Logo Styling - Made bigger and more prominent */
.logo {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.logo img {
    height: 90px;
    width: auto;
    max-width: 250px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.logo img:hover {
    transform: scale(1.05);
}

/* Navigation */
nav {
    flex-grow: 1;
    display: flex;
    justify-content: flex-end;
}

nav ul {
    list-style: none;
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
}

nav ul li {
    position: relative;
    margin-left: 35px;
}

nav ul li a {
    text-decoration: none;
    color: #000; /* Changed to black */
    font-weight: 600;
    padding: 12px 5px;
    display: block;
    transition: all 0.3s ease;
    font-size: 16px;
    position: relative;
}

nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 5px;
    left: 50%;
    background-color: #ff0000; /* Changed to red */
    transition: all 0.3s ease;
}

nav ul li a:hover::after {
    width: 100%;
    left: 0;
}

nav ul li a:hover {
    color: #ff0000; /* Changed to red */
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none; /* Hidden by default for desktop */
    background: none;
    border: none;
    font-size: 24px;
    color: #000; /* Changed to black */
    cursor: pointer;
    padding: 10px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.mobile-menu-btn:hover {
    background-color: #f8f9fa;
}

/* Dropdown Menu */
.dropdown-content {
    display: none;
    position: absolute;
    background-color: #fff; /* Changed to white */
    min-width: 220px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    z-index: 1001;
    border-top: 3px solid #ff0000; /* Changed to red */
    border-radius: 0 0 10px 10px;
    right: 0;
    top: 100%;
    overflow: hidden;
}

.dropdown-content a {
    color: #000; /* Changed to black */
    padding: 15px 20px;
    text-decoration: none;
    display: block;
    text-align: left;
    font-weight: 500;
    transition: all 0.3s ease;
    border-bottom: 1px solid #f0f0f0;
}

.dropdown-content a:last-child {
    border-bottom: none;
}

.dropdown-content a:hover {
    background-color: #f8f9fa;
    color: #ff0000; /* Changed to red */
    padding-left: 25px;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown-toggle .fas {
    margin-left: 5px;
    font-size: 12px;
    transition: transform 0.3s ease;
}

.dropdown:hover .dropdown-toggle .fas {
    transform: rotate(180deg);
}

/* Hero Section (Image Slider) */
.hero-section {
    width: 100vw; /* Full horizontal length */
    height: 100vh; /* Increased height to be more square-ish */
    min-height: 600px; /* Adjusted min-height for larger images */
    overflow: hidden;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 0; /* Changed to 0 to touch the header */
}

.slider-container {
    width: 100%;
    height: 100%;
    position: relative;
}

.slide {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    display: none;
    transition: opacity 1s ease-in-out;
}

/* Enhanced Overlay - Removed */
.overlay {
    content: none; /* Removed the pseudo-element overlay */
}

/* Enhanced Slide Text - Removed */
.slide-text {
    display: none; /* Hide the text content */
}

/* Image Animation */
.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Keeps aspect ratio and covers the area, cropping if necessary */
    display: block;
    transform: scale(1.1); /* Start zoomed in */
    transition: transform 4s ease-out;
}

/* Active Slide State */
.slide.active .slide-text {
    opacity: 1;
    transform: translate(-50%, -50%); /* Ensure it stays centered */
}

.slide.active img {
    transform: scale(1); /* Zoom out to normal size */
}

/* Partners Section (New) */
.partners-section {
    padding: 30px 0;
    background: #fff; /* Changed to white */
    text-align: center; /* Center the heading */
}

.partners-section h2 {
    color: #000; /* Changed to black */
    font-size: 3.2em;
    margin-bottom: 60px;
    font-weight: 900;
    position: relative;
    display: inline-block; /* To apply ::after correctly */
}

.partners-section h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #ff0000, #ff4d4d); /* Changed to red gradient */
    border-radius: 2px;
}

.partners-gallery {
    display: flex; /* Use flexbox for a single row */
    justify-content: center; /* Center items horizontally */
    flex-wrap: wrap; /* Allow items to wrap on smaller screens */
    gap: 30px; /* Space between partner items */
}

.partner-item {
    flex: 0 0 auto; /* Do not grow or shrink, base on content */
    width: 280px; /* Fixed width for each partner image container */
    height: 200px; /* Fixed height for consistency */
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
    overflow: hidden; /* Hide overflowing parts of the image if it's not object-fit: cover */
    display: flex; /* To center image inside */
    align-items: center;
    justify-content: center;
}

.partner-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
    border-color: #0000ff; /* Changed to blue outline */
}

.partner-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain; /* Ensure the whole image is visible */
    display: block;
    transition: transform 0.3s ease;
}

.partner-item:hover img {
    transform: scale(1.05);
}


/* Products Section */
.products-section {
    padding: 30px 0;
    background: #fff; /* Changed to white */
}

.products-section h2 {
    color: #000; /* Changed to black */
    font-size: 3.2em;
    margin-bottom: 60px;
    text-align: center;
    font-weight: 900;
    position: relative;
}

.products-section h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #ff0000, #ff4d4d); /* Changed to red gradient */
    border-radius: 2px;
}

.products-section h3 {
    color: #000; /* Changed to black */
    font-size: 2.5em;
    margin: 60px 0 35px 0;
    font-weight: 700;
    position: relative;
    padding-bottom: 15px;
}

.products-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #ff0000, #ff4d4d); /* Changed to red gradient */
    border-radius: 2px;
}

.product-gallery {
    display: grid;
    /* Changed to 4 columns, adjusting minimum width for smaller screens */
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 35px;
    margin-bottom: 60px;
}

.product-item {
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
    cursor: pointer; /* Add pointer cursor to indicate clickability */
}

.product-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.2);
    border-color: #0000ff; /* Changed to blue outline */
}

.product-item img {
    width: 100%;
    height: 300px;
    object-fit: contain; /* Changed from 'cover' to 'contain' to prevent cropping */
    display: block;
    transition: transform 0.3s ease;
}

.product-item:hover img {
    transform: scale(1.05);
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #2e2e2e 0%, #1a1a1a 100%);
    padding: 80px 0 0;
    color: white;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px; /* Added horizontal padding for smaller screens */
}

.footer-content-main {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 50px;
    padding-bottom: 50px;
}

.footer-block h3 {
    color: white;
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-block h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: #ff0000; /* Changed to red */
}

.footer-block p {
    color: #cccccc;
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 15px;
}

.footer-block p i {
    margin-right: 10px;
    color: #ff0000; /* Changed to red */
    font-size: 16px;
    width: 20px;
}

/* Social Icons */
.social-icons {
    margin-top: 25px;
    display: flex;
    gap: 15px;
}

.social-icons a {
    color: white;
    font-size: 24px;
    transition: all 0.3s ease;
    padding: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-icons a:hover {
    background: #ff0000; /* Changed to red */
    transform: translateY(-3px);
}

.footer hr {
    border: none;
    border-top: 1px solid #444;
    margin: 40px 0;
}

.footer-bottom {
    background-color: #1a1a1a;
    padding: 30px 0;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100vw;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
}

.footer-bottom .footer-text {
    color: #cccccc;
    font-size: 14px;
    margin-bottom: 15px;
}

.footer-bottom .footer-links {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-bottom .footer-links a {
    color: #cccccc;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.3s ease;
    position: relative;
}

.footer-bottom .footer-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -3px;
    left: 50%;
    background-color: #ff0000; /* Changed to red */
    transition: all 0.3s ease;
}

.footer-bottom .footer-links a:hover::after {
    width: 100%;
    left: 0;
}

.footer-bottom .footer-links a:hover {
    color: #ff0000; /* Changed to red */
}

/* Preloader Styles */
#loader-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color:#fff; /* Changed to white */
    z-index: 9999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: opacity 0.9s ease-out, visibility 0.9s ease-out;
    opacity: 1;
    visibility: visible;
}

.loader-products {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.loader-product-image {
    position: absolute;
    top: -2000px; /* Start above the viewport */
    width: 380px; /* Increased image size */
    height: 380px; /* Increased image size */
    object-fit: contain; /* Changed to contain for loader images as well */
    /* Animation properties will be set by JavaScript for randomness */
    animation-name: fall;
    animation-timing-function: ease-in-out;
    animation-fill-mode: forwards;
}

/* Keyframe animation for falling images */
@keyframes fall {
    0% {
        top: -100px; /* Start above the viewport */
        opacity: 0;
        transform: translateX(var(--start-x, 0px)) scale(0.5) rotate(0deg);
    }
    20% {
        opacity: 1; /* Fully visible quickly */
    }
    80% {
        opacity: 1; /* Stay visible for most of the fall */
    }
    100% {
        top: calc(100vh + 120px); /* Fall completely off the bottom of the viewport, adjusted for new size */
        opacity: 0; /* Fade out as they fall off */
        transform: translateX(var(--end-x, 0px)) scale(1.2) rotate(720deg); /* Slightly larger, more rotation, random end X */
    }
}

/* New keyframe animation for the logo to appear after images fall */
@keyframes logoAppearAfterFall {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

.loader-logo {
    width: 200px; /* Adjust size as needed */
    height: auto;
    object-fit: contain;
    margin-bottom: 20px;
    opacity: 0; /* Initially hidden */
    transform: scale(1); /* Logo is immediately at full scale, no scaling animation */
    animation: logoAppearAfterFall 1s forwards; /* Fade in over 1s */
    animation-delay: 4.5s; /* Delay the logo appearance until images have mostly fallen */
}

/* Removed @keyframes fadeInScale */


/* Initially hide main content */
.hidden-content {
    display: none;
}

/* Accessibility: Reduce motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.0ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.00ms !important;
        scroll-behavior: auto !important;
    }

    .hero-text {
        animation: none !important;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    body {
        background-color: white;
        color: black;
    }

    .partner-item,
    .product-item {
        border: 2px solid black;
    }

    .footer {
        background: black;
        color: white;
    }

    nav ul li a:hover {
        background-color: black;
        color: white;
    }
}

/* Image Popup Styles */
#popup-overlay {
    /* Changed from display: none; to opacity and visibility for smoother handling */
    opacity: 0;
    visibility: hidden;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7); /* Dark overlay */
    z-index: 2000; /* Above everything else, but below the popup */
    transition: opacity 0.3s ease, visibility 0.3s ease; /* Smooth transition */
}

#image-popup {
    /* Changed from display: none; to opacity and visibility for smoother handling */
    opacity: 0;
    visibility: hidden;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #fff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    z-index: 2001; /* Above the overlay */
    max-width: 90%;
    max-height: 90%;
    overflow: auto; /* Enable scrolling for large images */
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px; /* Space between image and name */
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease; /* Smooth transition */
}

/* Add active states for when the popup is shown */
#popup-overlay.active,
#image-popup.active {
    opacity: 1;
    visibility: visible;
}


.popup-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#popup-image {
    max-width: 100%;
    max-height: 70vh; /* Max height relative to viewport height */
    object-fit: contain;
    border-radius: 8px;
    margin-bottom: 10px;
}

#popup-image-name {
    font-size: 1.8em;
    font-weight: 700;
    color: #333;
    text-align: center;
    word-wrap: break-word; /* Ensure long names wrap */
}

.popup-close {
    position: absolute;
    top: 10px;
    right: 15px;
    color: #666;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.popup-close:hover,
.popup-close:focus {
    color: #ff0000; /* Red on hover/focus */
}


/* Media Queries for Responsiveness */

/* Tablet and Mobile adjustments */
@media (max-width: 1024px) {
    .container {
        width: 95%;
        padding: 15px 0;
    }

    /* Header adjustments */
    header .container {
        padding: 5px 0;
    }

    .logo img {
        height: 70px;
    }

    nav ul {
        margin-right: 20px;
    }

    nav ul li {
        margin-left: 25px;
    }

    nav ul li a {
        font-size: 15px;
        padding: 10px 5px;
    }

    /* Hero section adjustments */
    .hero-section {
        min-height: 450px;
    }

    /* Section titles adjustments */
    .partners-section h2,
    .products-section h2 {
        font-size: 2.8em;
        margin-bottom: 30px;
    }

    .products-section h3 {
        font-size: 2.2em;
        margin: 40px 0 25px 0;
    }

    /* Partners Gallery */
    .partners-gallery {
        gap: 20px;
        margin-bottom: 15px;
    }

    .partner-item {
        width: 220px;
        height: 160px;
    }

    /* Product Section */
    .products-section {
        padding-top: 30px;
        padding-bottom: 80px;
    }

    /* Product Gallery */
    .product-gallery {
        /* Adjusted for smaller screens to still try and fit 4 if possible, but fallback to 2 or 3 */
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: 25px;
        margin-bottom: 40px;
    }

    .product-item img {
        height: 250px;
    }

    /* Footer adjustments */
    .footer {
        padding: 40px 40px 0;
    }
    .footer-content-main {
        gap: 30px;
        padding-bottom: 15px;
    }
    .footer hr {
        margin: 8px 0;
    }
    .footer-bottom {
        padding: 12px 0;
    }

    #image-popup {
        padding: 20px;
    }
    #popup-image {
        max-height: 60vh;
    }
    #popup-image-name {
        font-size: 1.5em;
    }
    .popup-close {
        font-size: 30px;
    }
}

@media (max-width: 768px) {
    /* Header adjustments */
    header .container {
        flex-wrap: nowrap; /* Prevent wrapping the logo and button */
        justify-content: space-between; /* Space between logo and menu button */
        padding: 10px 0;
    }


    .logo {
        width: 100%;
        justify-content: flex-start;
        margin-top: 5px;
        height:30px;
    }
    .logo img{

        width:150px;

    }


     nav {
        width: 100%;
        justify-content: center;
        margin-top: 10px;

    }

    nav ul {
        display: none; /* Hide desktop nav by default on mobile */
        flex-direction: column;
        width: 50%;
        background-color: #fff; /* Changed to white */
        position: absolute;
        top: 100%; /* Position below header */
        left: 0;
        box-shadow: 0 8px 16px rgba(0,0,0,0.1);
        padding-bottom: 10px;
        border-top: 1px solid #eee;
        margin-left:180px;
    }

    nav.mobile-active ul {
        display: flex; /* Show mobile nav when active */
    }

    nav ul li {
        margin: 0;
        width: 100%;
        text-align: center;
    }

    nav ul li a {
        padding: 12px 20px;
        border-bottom: 1px solid #f0f0f0;
        color: #000; /* Changed to black */
    }

    nav ul li a:hover::after {
        width: 0; /* Remove hover underline for mobile */
    }

    .mobile-menu-btn {
        display: block; /* Show mobile menu button */
        position: absolute;
        right: 20px;
        top: 50%;
        transform: translateY(-50%);
    }



    /* Hero section adjustments */
    .hero-section {
        height: 50vh;
        min-height: 300px;
        margin-top:0px;
    }

    /* Section titles adjustments */
    .partners-section h2,
    .products-section h2 {
        font-size: 2.5em;
        margin-bottom: 40px;
    }

    .products-section h3 {
        font-size: 2em;
        margin: 40px 0 25px 0;
        text-align: center;
    }

    .products-section h3::after {
        left: 50%;
        transform: translateX(-50%);
    }

    /* Partners Gallery */
    .partners-gallery {
        gap: 20px;
        margin-bottom: 15px;
    }

    .partner-item {
        width: 220px;
        height: 160px;
    }

    /* Product Section */
    .products-section {
        padding-top: 30px;
        padding-bottom: 80px;
    }

    /* Product Gallery */
    .product-gallery {
        /* Adjusted to allow 2 or 3 columns on tablets, 1 on smaller mobile */
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 25px;
        margin-bottom: 40px;
    }

    .product-item img {
        height: 250px;
    }

    /* Footer adjustments */
    .footer {
        padding: 50px 0 0;
    }

    .footer-content-main {
        grid-template-columns: 1fr;
        gap: 30px;
        padding-bottom: 30px;
    }

    .footer-block {
        text-align: center;
    }

    .footer-block h3::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .social-icons {
        justify-content: center;
    }

    .footer-bottom {
        padding: 20px 0;
    }

    .footer-bottom .footer-links {
        gap: 15px;
    }

    .loader-product-image {
        width: 200px;
        height: 200px;
    }
    #image-popup {
        width: 95%; /* Adjust width for smaller screens */
        padding: 15px;
    }
    #popup-image {
        max-height: 50vh;
    }
    #popup-image-name {
        font-size: 1.3em;
    }
    .popup-close {
        font-size: 28px;
        top: 8px;
        right: 12px;
    }
}

/* Mobile phones (480px and down) */
@media (max-width: 480px) {
    html {
        font-size: 14px;
    }

   .logo {
        width: 100%;
        justify-content: flex-start;
        margin-top: 5px;
        height:30px;
    }

    .mobile-menu-btn {
        font-size: 20px;
        padding: 8px;
    }

    /* Hero Section */
    .hero-section {
        height: 35vh;
        min-height: 250px;
        width:100%;
    }
    .loader-product-image {
        width: 200px;
        height: 200px;
    }

    /* Section Titles */
    .partners-section h2,
    .products-section h2 {
        font-size: 2em;
        margin-bottom: 30px;
    }

    .products-section h3 {
        font-size: 1.6em;
        margin: 30px 0 20px 0;
    }

    /* Partners Gallery */
    .partners-gallery {
        gap: 15px;
        margin-bottom: 10px;
    }

    .partner-item {
        width: 180px;
        height: 120px;
    }

    /* Product Section */
    .products-section {
        padding-top: 20px;
        padding-bottom: 80px;
    }

    /* Product Gallery */
    .product-gallery {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); /* Adjusted for smaller mobile screens */
        gap: 15px;
        margin-bottom: 20px;
    }

    .product-item img {
        height: 180px;
    }

    /* Footer */
    .footer {
        padding: 40px 0 0;
    }

    .footer-content-main {
        gap: 20px;
        padding-bottom: 20px;
    }
    #image-popup {
        padding: 10px;
    }
    #popup-image {
        max-height: 40vh;
    }
    #popup-image-name {
        font-size: 1.1em;
    }
    .popup-close {
        font-size: 25px;
        top: 5px;
        right: 8px;
    }
}

/* Small mobile phones (320px and down) */
@media (max-width: 320px) {
    .logo img {
        height: 50px;
    }

    .partners-section h2,
    .products-section h2 {
        font-size: 1.8em;
    }

    .products-section h3 {
        font-size: 1.4em;
    }

    .partner-item {
        width: 150px;
        height: 100px;
    }

    .product-item {
        min-width: 150px;
    }

    .product-item img {
        height: 150px;
    }

    .hero-section {
        height: 30vh;
        min-height: 200px;
    }

    .loader-product-image {
        width: 140px;
        height: 180px;
    }
}