/* ================= RESET ================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

body {
    background-color: #ffffff;
    color: #0b2545;
}

/* ================= NAVBAR ================= */
.navbar {
    display: flex;
    align-items: center;
    background-color: #0b2545;
    padding: 15px 50px;
}

.navbar .logo {
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: bold;
}

.menu {
    display: flex;
    margin-left: auto;
    margin-right: auto;
    gap: 30px;
    padding-left: 600px;   /* move menu slightly right */
}


.menu a {
    color: #ffffff;
    text-decoration: none;
    margin-left: 25px;
    font-weight: 500;
    transition: color 0.3s;
}

.menu a:hover {
    color: #ff9800;
}

.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-menu {
    display: none;
    position: absolute;
    background-color: #ffffff;
    min-width: 200px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    z-index: 100;
}

.dropdown-menu a {
    color: #0b2545;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    transition: background 0.3s;
}

.dropdown-menu a:hover {
    background-color: #f2f5f8;
}

.dropdown:hover .dropdown-menu {
    display: block;
}


/* ================= HERO / WELCOME ================= */
.hero {
    padding: 120px 20px 80px;
    text-align: center;
    background-color: #f2f5f8;
}

.home-hero-img {
    width: 100%;
    max-width: auto;   /* adjust as you like */
    height: 300px;
    display: block;
    margin: 0;
}

.welcome-text {
    font-size: 2.5rem;
    font-weight: bold;
    font-style: italic;
    color: #0b2545;
    position: relative;
    display: inline-block;
}

/* Animated underline */
.welcome-text::after {
    content: '';
    display: block;
    margin: 8px auto 0;
    height: 4px;
    width: 0;
    background-color: #0b2545;
    transition: width 0.5s;
}

.welcome-text:hover::after {
    width: 100%;
}

/* ================= ABOUT & SERVICES SECTIONS ================= */
.about-section, .services, .contact-section {
    padding: 60px 20px;
}

.about-section.light-bg, .services {
    background-color: #f8fbff;
}

.about-section h2, .services h2, .contact-section h2 {
    font-size: 2rem;
    color: #0b2545;
    font-weight: bold;
    margin-bottom: 20px;
    border-bottom: 3px solid #0b2545;
    display: inline-block;
    padding-bottom: 5px;
}

.about-section p, .services p, .contact-section p {
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 20px;
    color: #0b2545;
}

.about-section ul, .services ul {
    list-style-type: disc;
    padding-left: 20px;
    margin-bottom: 20px;
}

.about-section ul li, .services ul li {
    margin-bottom: 10px;
    font-size: 1rem;
}

/* ================= SERVICES GRID ================= */
.services-grid {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-top: 40px;
}

.service-box {
    background-color: #ffffff;
    padding: 40px 20px;
    width: 300px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: center;
}

.service-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.service-box h3 {
    margin-bottom: 15px;
    font-size: 1.2rem;
    font-weight: bold;
}

.service-box p {
    font-size: 0.95rem;
}

/* ================= CATEGORY PAGE ================= */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-top: 80px;

}

.product-card {
    background-color: #ffffff;
    padding: 50px 20px;
    border-radius: 12px;
    text-align: center;
    font-weight: bold;
    font-size: 1rem;
    color: #45240b;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s, background-color 0.3s;
    cursor: pointer;
}

.product-card img {
  width: 100px;
  height: 60px;              /* ⭐ fixed logo area */
  object-fit: contain;       /* keeps logo ratio */
  margin-bottom: 12px;
  display: block;
  margin-left: auto;
    margin-right: auto;
}


.product-card:hover {
    transform: translateY(-8px) scale(1.05);
    box-shadow: 0 12px 30px rgba(0,0,0,0.15);
    background-color: #f2f5f8;
}

.card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}


/* ================= CONTACT FORM ================= */
.contact-form form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 500px;
    margin-top: 20px;
}

.contact-form input, .contact-form textarea {
    padding: 12px 15px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1rem;
}

.contact-form button {
    padding: 14px 0;
    background-color: #0b2545;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
}

.contact-form button:hover {
    background-color: #12315a;
    transform: scale(1.05);
}

/* ================= FOOTER ================= */
.footer {
    background-color: #0b2545;
    color: #ffffff;
    text-align: center;
    padding: 25px 20px;
    font-size: 0.9rem;
}

/* ================= CONTAINER ================= */
.container {
    max-width: 1000px;
    margin: auto;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 768px) {
    .menu {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .menu a {
        margin: 10px 0;
    }

    .services-grid {
        flex-direction: column;
        align-items: center;
    }

    .about-section, .services, .contact-section {
        padding: 40px 15px;
    }

    .about-section h2, .services h2, .contact-section h2 {
        font-size: 1.6rem;
    }

    .grid-container {
        gap: 20px;
    }

    .product-card {
        padding: 40px 15px;
    }

    .hero {
        padding: 80px 15px 60px;
    }

    .welcome-text {
        font-size: 2rem;
    }
}

/* Center About Section */
.about-center {
    text-align: center;       /* horizontal centering */
    max-width: 800px;         /* limits width so text is readable */
    margin: 40px auto;        /* centers section horizontally and adds spacing vertically */
}

/* About Section Heading Styling */
.about-center h2 {
    font-size: 2rem;               /* slightly larger */
    font-weight: bold;              /* bold text */
    font-style: italic;             /* italic */
    color: #0b2545;                 /* navy color */
    position: relative;             /* needed for underline animation */
    display: inline-block;          /* so underline width matches text */
    padding-bottom: 8px;
    margin-bottom: 20px;
}

/* Animated underline */
.about-center h2::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background-color: #0b2545;
    border-radius: 2px;
    transition: width 0.5s ease-in-out;
}

.about-center h2:hover::after {
    width: 100%;
}

/* ================= GLOBAL FADE-IN ANIMATION ================= */
.fade-in {
    opacity: 0;                 /* start invisible */
    transform: translateY(20px); /* slightly lower for slide-up effect */
    animation: fadeInUp 1s ease forwards; /* animation name, duration, easing */
    animation-delay: 0.2s;       /* optional slight delay */
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}



/* ===== FOOTER ===== */
.footer {
  background: #0b2545; /* Navy Blue */
  color: #ffffff;
  padding: 60px 20px 20px;
  margin-top: 80px;
}

.footer-container {
  max-width: 1200px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.footer-col h3,
.footer-col h4 {
  margin-bottom: 15px;
  font-size: 18px;
  color: #ffffff;
}

.footer-col p {
  font-size: 14px;
  line-height: 1.6;
  color: #d6dbe2;
}

.footer-col ul {
  list-style: none;
  padding: 0;
}

.footer-col ul li {
  margin-bottom: 10px;
  font-size: 14px;
  color: #d6dbe2;
}

.footer-col ul li a {
  color: #d6dbe2;
  text-decoration: none;
}

.footer-col ul li a:hover {
  text-decoration: underline;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.2);
  text-align: center;
  padding-top: 15px;
  margin-top: 40px;
  font-size: 13px;
  color: #cfd6df;
}

/* Responsive */
@media (max-width: 900px) {
  .footer-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 500px) {
  .footer-container {
    grid-template-columns: 1fr;
  }
}


/* WhatsApp Floating Button */
.whatsapp-float {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 60px;
  height: 60px;
  background-color: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
  z-index: 9999;
  transition: transform 0.3s ease;
}

.whatsapp-float:hover {
  transform: scale(1.1);
}

.whatsapp-float img {
  width: 32px;
  height: 32px;
}




/* sub dropdown support */
.dropdown-menu {
    position: absolute;
}

.dropdown-item {
    position: relative;
    padding: 10px 15px;
    cursor: pointer;
}

.dropdown-item span {
    display: block;
}

/* arrow */
.dropdown-item::after {
    content: "▶";
    position: absolute;
    right: 10px;
    font-size: 12px;
}

/* sub dropdown box */
.sub-dropdown {
    position: absolute;
    top: 0;
    left: 100%;
    min-width: 200px;
    background: #ffffff;
    display: none;
}

.dropdown-item:hover .sub-dropdown {
    display: block;
}

/* sub links */
.sub-dropdown a {
    display: block;
    padding: 10px 15px;
    text-decoration: none;
    color: #0b2545;
}

/* underline hover for sub dropdown */
.sub-dropdown a {
    position: relative;
}

.sub-dropdown a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 2px;
    width: 0;
    height: 2px;
    background: #ff9800;
    transition: width 0.2s ease;
}

.sub-dropdown a:hover::after {
    width: 100%;
}

/* soft shadow */
.sub-dropdown a:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* MAIN DROPDOWN — premium animation */
.dropdown-menu {
    opacity: 0;
    visibility: hidden;
    transform: scale(0.98);
    transform-origin: top;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}

/* SUB DROPDOWN — smooth side reveal */
.sub-dropdown {
    opacity: 0;
    visibility: hidden;
    transform: scale(0.98);
    transform-origin: left;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.dropdown-item:hover .sub-dropdown {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}

/* Main dropdown hover animation like Polycab */
.dropdown-item span {
    position: relative;
    display: inline-block;
}

.dropdown-item span::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 2px;
    width: 0;
    height: 2px;
    background: #ff9800;
    transition: width 0.25s ease, transform 0.25s ease;
}

.dropdown-item:hover span::after {
    width: 100%;
}

.dropdown-item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transform: translateX(2px); /* optional subtle slide like Polycab */
}


/* ================= CERTIFICATES SECTION ================= */
.certificates {
    padding: 50px 20px;
    text-align: center;
    background-color: #ffffff;
}

.certificates h2 {
    font-size: 2rem;
    color: #ff9800;
    margin-bottom: 30px;
}

.certificate-gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.certificate-item {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  overflow: hidden;
  width: 250px;

  display: flex;
  flex-direction: column;

  min-height: 360px;      /* ⭐ makes card taller */
  padding: 12px;          /* ⭐ adds breathing space */

  transition: transform 0.3s ease, box-shadow 0.3s ease;
}



.certificate-item img {
  width: 100%;
  height: 220px;          /* ⭐ bigger image */
  object-fit: contain;    /* keeps document readable */
  margin-bottom: 12px;
}



.certificate-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.btn-download {
  margin-top: auto;

  margin-left: -12px;
  margin-right: -12px;
  margin-bottom: -12px;

  padding: 16px 0;
  text-align: center;

  background-color: #ff9800;
  color: #fff;
  font-weight: bold;
  text-decoration: none;
}



.btn-download:hover {
    background-color: #e67600;
}



/* ================= PRODUCT PHOTO SECTION ================= */

.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  max-width: 1000px;
  margin-top: 80px;
  margin-left: auto;
  margin-right: auto;
}

.photo-card {
  position: relative;
  overflow: hidden;          /* 🔴 VERY IMPORTANT */
  border-radius: 16px;
  height: 420px;             /* same height for all cards */
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}


.photo-card img {
  position: absolute;
  top: 0;
  left: 0;

  width: 100%;
  height: 100%;

  object-fit: cover;         /* 🔥 fills box completely */
  object-position: center;   /* keeps center visible */
}

/* ===== SIMPLE RESPONSIVE ALIGNMENT FIX ===== */
html, body {
  width: 100%;
  overflow-x: hidden;
}

/* Make all sections fit screen */
* {
  box-sizing: border-box;
}

/* Images never overflow */
img, video {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Navbar alignment */
@media (max-width: 768px) {

  header.navbar {
    width: 100%;
    padding: 10px;
  }

  nav.menu {
    display: flex !important;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
  }

  nav.menu a {
    padding: 8px 12px;
    font-size: 14px;
    white-space: nowrap;
  }

  /* Stack large sections vertically */
  .row,
  .container {
    width: 100%;
    margin: 0 auto;
    flex-direction: column;
  }

  /* Reduce big spacing */
  section,
  div {
    max-width: 100%;
  }
}

/* ===== FORCE NAVBAR VISIBLE ON MOBILE ===== */
@media (max-width: 768px) {

  header.navbar {
    width: 100% !important;
    position: relative !important;
    z-index: 9999 !important;
  }

  /* FORCE menu to show */
  nav.menu {
    display: flex !important;
    flex-direction: row !important;
    justify-content: center !important;
    align-items: center !important;
    width: 100% !important;
    position: relative !important;
    background: transparent !important;
    z-index: 9999 !important;
  }

  /* FORCE menu links visible */
  nav.menu a {
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
    color: #ffffff !important;
    padding: 8px 10px !important;
    font-size: 14px !important;
    text-decoration: none !important;
    white-space: nowrap !important;
  }

  /* Disable dropdown hover behaviour on mobile */
  .dropdown-menu,
  .sub-dropdown {
    position: static !important;
    display: none !important;
  }
}
