/* ===========================
   Global Reset & Base Styles
   =========================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  /* ✅ Background image setup */
  background: url("../images/background/1.jpg") no-repeat center center fixed;
  background-size: cover; /* makes it responsive */
  background-attachment: scroll; /* stays in place when scrolling */
  background-color: #f5f5f5; /* fallback color */
  margin: 0;
  padding-top: 50px;
}

/* Default header (transparent) */
header {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 90px;
  background: transparent;
  z-index: 500;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

/* Header when scrolled */
 header.scrolled {
    background: rgba(255,255,255,0.95); /* slightly transparent */
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    }

.header-container {
    position: relative; /* Needed for absolute positioning inside */
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 85px;
    padding: 0 3rem;
}


.logo img {
  max-height: 120px;
  transition: transform 0.2s ease-in-out;
}

.logo img:hover {
  transform: scale(1.05);
}
nav {
flex: 1;
text-align: center;
}

  /* ===========================
   Header
   =========================== */
    nav a {
        color: #1f3276;
        padding: 6rem;
        text-decoration: none;
        margin-left: 0;
        transition: color 0.6s ease;
        font-size: 1.8rem;
        text-align: center;
        font-family: 'League Spartan', sans-serif;
    }
    /* Active page link */
    nav a.active {
        text-decoration: underline;
        text-underline-offset: 4px; /* spacing under text */
        font-weight: bold; /* same as hover emphasis */
        color: #227dc6; /* main blue color */
    }

    /* Hover effect */
    nav a:hover {
        color: #9ed069; /* modern green */
    }

header.scrolled nav a {
   color: #227dc6; }

header.scrolled nav a:hover {
    color:#9ed069;
}


/* ===========================
   Footer
   =========================== */
footer {
  background: #e4322a; /* strong red */
  color: white;
  text-align: center;
  padding: 1rem 0;
  margin-top: 3rem;
  font-size: 0.9rem;
}

/* ===========================
   Containers & Headings
   =========================== */
.container {
    width: 90%;
    margin: 2rem auto;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
    font-family: 'League Spartan', sans-serif;
    font-size: 1.5rem;
}

h1, h2, h3 {
    color: #1f3276;
    margin-bottom: 1rem;
    font-family: 'League Spartan', sans-serif;
    font-weight: 700;
}

p {
  margin-bottom: 1rem;
}


/* ===========================
   🔹 Enhanced Product Grid
   =========================== */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.8rem;
    margin-top: 3rem;
    padding: 1rem;
}

.product-card {
    background: rgba(255, 255, 255, 0.95);
    border: none;
    border-radius: 14px;
    text-align: center;
    padding: 1.5rem;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
    transition: all 0.5s ease-in-out;
    cursor: pointer;
    overflow: hidden;
}

    .product-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 10px 24px rgba(0, 0, 0, 0.15);
    }

    .product-card img {
        width: 100%;
        height: 200px;
        object-fit: contain;
        background: transparent;
        border-radius: 10px;
        margin-bottom: 1rem;
        transition: transform 0.3s ease;
    }

    .product-card:hover img {
        transform: scale(1.05);
    }

    .product-card h3 {
        font-size: 1.3rem;
        font-weight: 700;
        color: #1f3276;
        margin-bottom: 0.4rem;
        font-family: 'League Spartan', sans-serif;
        line-height: 1.2;
    }


    .product-card p {
        font-size: 0.95rem;
        color: #444;
        margin-bottom: 1rem;
       
    }

    .product-card button {
        background: #227dc6;
        border: none;
        color: white;
        padding: 0.5rem 1.2rem;
        border-radius: 8px;
        cursor: pointer;
        transition: background 0.3s ease;
    }

        .product-card button:hover {
            background: #1f5f99;
        }



/* ===========================
   Filter & Search Bar
   =========================== */
.filter-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    background: #f1f1f1;
    padding: 1rem;
    border-radius: 8px;
    margin-top: 0 !important;
    padding-top: 0 !important;

}

.filter-bar label {
  font-weight: bold;
  margin-right: 0.5rem;
}

.filter-bar select,
.filter-bar input {
  padding: 0.5rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 0.95rem;
}


/* ===========================
   🔹 Improved Modal Design
   =========================== */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
    overflow-y: auto;
    padding: 2rem;
    animation: fadeInScale 0.35s cubic-bezier(0.25, 0.1, 0.25, 1) forwards;
    backdrop-filter: blur(6px);
}

/* Smooth fade + scale in */
@keyframes fadeInScale {
  0% {
    opacity: 0;
    transform: scale(0.9);
  }
  50% {
    opacity: 0.7;
    transform: scale(1.02);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.modal-content {
    background: #ffffff;
    border-radius: 16px;
    width: 90%;
    max-width: 850px;
    padding: 2rem 2.5rem;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    position: relative;
    animation: fadeIn 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-height: 85vh;
    overflow-y: auto;
}

.close {
    position: absolute;
    top: 18px;
    right: 25px;
    font-size: 2rem;
    color: #227dc6;
    cursor: pointer;
    transition: color 0.3s ease;
}

    .close:hover {
        color: #e4322a;
    }

.modal-flex {
    display: flex;
    flex-direction: row;
    gap: 2rem;
    align-items: flex-start;
}

.modal-left img {
    width: 100%;
    max-width: 340px;
    height:500px;
    object-fit: contain;
    border-radius: 10px;
    background: transparent;
    padding: 0.5rem;
}

.modal-right h2 {
    color: #1f3276;
    font-size: 1.8rem;
}

.modal-right p {
    color: red;
    font-size: 1rem;
    line-height: 1.6;
}

.modal-specs h4 {
    color: #227dc6;
    margin-top: 1rem;
}

.modal-specs p {
  color: #444;
  font-size: 0.9rem;
  white-space: normal;          /* allows normal line breaks */
  word-wrap: break-word;        /* breaks long words when needed */
  overflow-wrap: break-word;    /* modern version for word wrapping */
  line-height: 1.5;             /* improves readability */
  text-align: justify;          /* optional: makes text edges align neatly */
}



/* Stack modal on mobile */
@media (max-width: 768px) {
    .modal-flex {
        flex-direction: column;
    }

    .modal-left img {
        max-width: 100%
    }
}


.modal-right {
  flex: 5;
}
    .modal-right h2 {
        margin-bottom: 0.5rem;
        color: #1f3276;
        font-family: 'League Spartan', sans-serif;
    }
    .modal-right p {
        margin-bottom: 1rem;
        color: black;
        font-weight: 500;
        font-size: 1.2rem;
        font-family: 'League Spartan', sans-serif;
    }

/* Features and categories */
.modal-specs h4 {
    margin: 1rem 0 0.5rem;
    color: #1f3276;
    font-family: 'League Spartan', sans-serif;
    font-size: 1.2rem;
}

.modal-specs p {
    font-weight: 100;
    color: #227dc6;
    font-size: 1.2rem;
    font-family: 'League Spartan', sans-serif;
    font-weight: 400;
}

#modalbrand {
    list-style: none; /* removes the bullet points */
    padding: 0; /* removes default left indentation */
    margin: 0; /* optional: cleans up spacing */
}

    #modalbrand li {
        color: #227dc6; /* keeps your modal text consistent */
        font-family: 'League Spartan', sans-serif;
        font-size: 1.5rem;
        margin-bottom: 0.5rem; /* adds space between features */
    }



.modal h2 {
    color: #1f3276;
    font-size: 2rem;
    font-family: 'League Spartan', sans-serif;
}

/* Fade animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}


/* Prevent background scroll when modal is open */
body.modal-open {
  overflow: hidden;
}


/* Contact Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 600px;
  margin: 2rem auto;
}

.contact-form label {
  font-weight: 600;
  color: #227dc6;
}

.contact-form input,
.contact-form textarea {
  padding: 0.8rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1rem;
  width: 100%;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #227dc6;
  box-shadow: 0 0 5px rgba(34,125,198,0.5);
}

    .contact-form button {
        background: #1f3276;
        color: white;
        border: none;
        padding: 0.9rem;
        border-radius: 8px;
        font-size: 1rem;
        cursor: pointer;
        transition: background 0.3s ease;
    }

.contact-form button:hover {
  background: #1b5f99;
}

/* Hero Slideshow */
.slideshow-container {
  position: relative;
  max-width: 100%;
  height: auto;
  width:100%;
  margin: auto;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 0px 0px rgba(0,0,0,0.2);
}

.slide {
  display: none;
  height: 100%;
}

.slide img {
  width: 100%;
  height: auto;
  max-height: 1080px;
  object-fit: cover;
  border-radius: 5px;
}

.caption {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  font-size: 1.5rem;
  font-weight: 600;
  background: rgba(0,0,0,0.5);
  padding: 0.5rem 1rem;
  border-radius: 8px;
}

/* Navigation Arrows */
.prev, .next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  margin-top: -22px;
  padding: 16px;
  color: white;
  font-weight: bold;
  font-size: 24px;
  transition: 0.3s;
  border-radius: 0 3px 3px 0;
  user-select: none;
  background: rgba(0,0,0,0);
}
.next { right: 0; border-radius: 3px 0 0 3px; }
.prev:hover, .next:hover { background: rgba(0,0,0,0.8); }

/* Dots */
.dots-container { margin-top: 15px; }
.dot {
  cursor: pointer;
  height: 15px; width: 15px;
  margin: 0 4px;
  background-color: #bbb;
  border-radius: 50%;
  display: inline-block;
  transition: background-color 0.3s;
}
.active, .dot:hover { background-color: transparent; }



/* Dropdown container */
.dropdown {
    position: relative;
    display: inline-block;
}

/* Dropdown menu */
.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; /* align to left edge of parent */
    width: 100%; /* fill the parent width */
    background: #f0f0f0; /* the background color you want */
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    border-radius: 6px;
    z-index: 999;
    flex-direction: column;
    text-align: left; /* optional: left-align text */
}


    .dropdown-menu a {
        display: block;
        padding: 10px 20px;
        width: 100%;
        box-sizing: border-box;
        color: #333;
        text-decoration: none;
    }

    /* Remove underline and hover highlight for dropdown links */
        .dropdown-menu a,
        .dropdown-menu a.active,
        .dropdown-menu a:hover {
            text-decoration: none; /* no underline */
            background: none; /* remove background color */
            color: #333 ; /* keep base color */
          
        }

    /* Hover highlight fills full width */
        .dropdown-menu a:hover {
            background: #227dc6;
            color: white;
        }

/* Show dropdown on hover */
.dropdown:hover .dropdown-menu {
    display: flex;
}

.prod-images {
    overflow: hidden;
    height:100px; /* adjust height as you like */
}

/* Center button below slideshow */
.hero-btn-container {
    text-align: center;
    margin-top: 20px;
    margin-bottom: 40px;
}

.hero-btn {
    display: inline-block;
    background-color: #0074c2; /* adjust to match your theme */
    color: white;
    font-size: 1.4rem;
    font-weight: 600;
    padding: 12px 28px;
    border-radius: 30px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    font-family: 'League Spartan', sans-serif;
}

    .hero-btn:hover {
        background-color: #005a9c;
        transform: translateY(-3px);
    }


/* HAMBURGER ICON POSITION */
.menu-toggle {
    display: none;
    font-size: 30px;
    cursor: pointer;
    user-select: none;
    color: #1f3276;
    position: absolute;
    right: 20px; /* Keep it at the right edge */
    top: 25px; /* Adjust vertically */
    z-index: 1100; /* Ensure it stays above other elements */
}


@media (max-width: 768px) {
    .menu-toggle {
        display: block; /* Show hamburger only on mobile */
    }

    nav {
        display: none;
        flex-direction: column;
        width: 100%;
        background: white;
        position: absolute;
        top: 80px; /* Push it below header */
        left: 0;
        border-top: 1px solid #ddd;
        z-index: 1000;
    }

        nav.active {
            display: flex;
        }

        /* -------------------------
   🌐 MOBILE DROPDOWN FIX
   ------------------------- */

        nav a,
        .dropdown > a {
            display: block;
            padding: 0.9rem 1rem;
            background: white;
            color: #1f3276;
            font-weight: 600;
            text-decoration: none;
            transition: background 0.25s ease, color 0.25s ease;
            border-radius: 6px;
            font-family: 'League Spartan', sans-serif;
        }

            /* Subtle hover, not a solid blue bar */
            nav a:hover,
            .dropdown > a:hover {
                background: rgba(0, 123, 255, 0.08);
                color: #007bff;
            }

            /* Active link styling */
            nav a.active {
                background: rgba(0, 123, 255, 0.1);
                color: #007bff;
                border-left: 4px solid #007bff;
            }

    /* Dropdown menu — no background block behind parent link */
    .dropdown {
        background: white;
        box-shadow: none;
        padding: 0;
        margin: 0;
        border-radius: 0;
    }

    /* Dropdown items inside Products */
    .dropdown-menu {
        background: #ffffff;
        border-radius: 10px;
        margin-top: 0.3rem;
        box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
        overflow: hidden;
        animation: fadeIn 0.25s ease;
    }

        /* Each sub-item */
        .dropdown-menu a {
            padding: 0.8rem 1rem;
            color: #003366;
            background: transparent;
            transition: background 0.25s ease, color 0.25s ease;
        }

            .dropdown-menu a:hover {
                background: rgba(0, 123, 255, 0.08);
                color: #007bff;
            }

    /* Dropdown toggle animation */
    @keyframes fadeIn {
        from {
            opacity: 0;
            transform: translateY(-5px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }



        .dropdown-menu.show {
            display: block;
        }
}






/* ===========================
   📱 Responsive Design
   =========================== */

/* --- For tablets and smaller laptops (max-width: 1024px) --- */
@media (max-width: 1024px) {

    /* Header adjustments */
    .header-container {
        padding: 0 1rem;
    }

    nav a {
        padding: 0.5rem 2rem;
        font-size: 0.95rem;
    }

    /* Product grid: 2 columns */
    .product-grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        gap: 1rem;
    }

    /* Slideshow smaller height */
    .slideshow-container {
        max-width: 95%;
        height: 500px;
    }

    .slide img {
        height: 500px;
    }

    /* Modal slightly smaller */
    .modal-content {
        width: 90%;
        max-width: 700px;
    }
}

/* --- For mobile phones (max-width: 768px) --- */
@media (max-width: 768px) {

    /* Stack header elements vertically */
    .header-container {
        flex-direction: column;
        height: auto;
        padding: 0.5rem 1rem;
    }

    .logo img {
        max-height: 80px;
        margin-bottom: 0.5rem;
    }

    nav {
        width: 100%;
    }

        nav a {
            display: block;
            padding: 0.75rem 0;
            font-size: 0.95rem;
        }

    /* Dropdown menu full-width */
    .dropdown-menu {
        position: static;
        width: 100%;
        box-shadow: none;
    }

    /* Filter bar stack */
    .filter-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    /* Product grid: 1 column */
    .product-grid {
        grid-template-columns: 1fr;
    }

    /* Modal stack */
    .modal-content {
        flex-direction: column;
        width: 95%;
        max-width: 500px;
    }

    .modal-left img {
        max-height: 40vh;
    }

    /* Contact form width */
    .contact-form {
        width: 90%;
    }

    .slideshow-container {
        height: auto; /* Let it resize naturally */
        max-width: 95%;
    }

    .slide img {
        width: 100%;
        height: auto; /* Keeps proportions */
        object-fit: contain; /* Shows entire image, no cropping */
        object-position: center; /* Center the image */
        background: transparent /* Optional: prevents gray bars if transparent */
    }

    .slide {
        display: flex;
        align-items: center;
        justify-content: center;
        background: transparent; /* matches your site background */
    }


    .caption {
        font-size: 1rem;
        padding: 0.4rem 0.8rem;
    }

    .hero-btn {
        font-size: 1rem;
        padding: 10px 24px;
    }

    .about_us img{
        width: 100%;
        height: auto; /* Keeps proportions */
        object-fit: fill; 
        object-position: center; /* Center the image */
        background: transparent /* Optional: prevents gray bars if transparent */
    }
}

/* Dropdown show on mobile tap */
@media (max-width: 768px) {
    .dropdown-menu {
        display: none;
    }

        .dropdown-menu.show {
            display: block;
        }
}


/* --- For very small screens (max-width: 480px) --- */
@media (max-width: 480px) {

    nav a {
        font-size: 0.9rem;
    }

    .product-card img {
        height: 120px;
    }

    .modal-right p {
        font-size: 1.5rem;

    }

    .hero-btn {
        font-size: 0.9rem;
        padding: 8px 20px;
    }

}

.page-title{
    padding: 10px 20px;
    padding-top: 1rem;
    font-size: 2rem;

}

.prod_desc {
    line-height: 1.3;
    font-size: 1.8rem;
    color: #222;
    padding: 2rem 6rem;
    text-align:justify;
}

/* Make text wrap around the image */
.prod_logo {
    float: left;
    width: 250px;
    height: auto;
    margin: 0 0rem 0rem 0; /* space around image */
}

/* Highlight styles */
.prod_text .highlight,
.highlight {
    color: #0094cc;
    font-weight: 600;
}

.highlight-blue {
    color: #0072c6;
    font-weight: 600;
}

/* Responsive fix: remove float on small screens */
@media (max-width: 768px) {
    .prod_logo {
        float: none;
        display: block;
        margin: 0 auto 0.5rem;
    }

    .prod_desc {
        text-align: center;
    }
}


