/* ===============================
   Monark Engineering - Style.css
   Version: v25.0
   =============================== */

/* ---- Global Styles ---- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, sans-serif;
  color: #222;
  background-color: #fff;
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* ---- Navbar ---- */
.navbar {
  background: linear-gradient(180deg, #ffffff 0%, #f8f9fb 100%);;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 999;
  padding: 10px 0;
}

.navbar .logo img {
  height: 60px;
}

.nav-links {
  float: right;
}

.nav-links a {
  margin: 0 12px;
  padding: 8px 0;
  color: #004aad;
  font-weight: 500;
  transition: color 0.3s;
}

.nav-links a:hover,
.nav-links .active {
  color: #e6a300;
}

/* ---- Page Banner ---- */
.page-banner {
  position: relative;
  background-size: cover;
  background-position: center;
  height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.page-banner .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
}

.page-banner .banner-content {
  position: relative;
  text-align: center;
}

.page-banner h1 {
  font-size: 2.2rem;
  margin-bottom: 8px;
  text-transform: uppercase;
}

/* ---- Section Defaults ---- */
section {
  padding: 60px 0;
}

section h2 {
  font-size: 1.8rem;
  margin-bottom: 20px;
  text-align: center;
  color: #004aad;
}

section p.intro {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
  font-size: 1rem;
}

/* ---- Gallery Grid ---- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.gallery-item img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 8px;
  transition: transform 0.4s;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

/* ---- Customer Logos ---- */
.customer-logos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 20px;
  align-items: center;
  text-align: center;
}

.customer-item img {
  max-width: 100%;
  height: 80px;
  object-fit: contain;
  filter: grayscale(100%);
  transition: all 0.3s;
}

.customer-item img:hover {
  filter: none;
  transform: scale(1.05);
}

/* ---- Footer ---- */
footer {
  background: #002b6b;
  color: white;
  padding: 50px 0 20px 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 20px;
}

footer h3, footer h4 {
  margin-bottom: 10px;
  color: #e6a300;
}

footer p {
  font-size: 0.95rem;
}

footer .copyright {
  text-align: center;
  font-size: 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.3);
  padding-top: 10px;
}

/* ---- Floating Contact FAB ---- */
#contactMenu {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 1000;
}

#mainFab {
  background: #004aad;
  border: none;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
  transition: all 0.3s;
}

#mainFab img {
  width: 35px;
  height: 35px;
}

#mainFab:hover {
  transform: scale(1.1);
  background: #e6a300;
}

#contactOptions {
  display: none;
  position: absolute;
  bottom: 70px;
  right: 0;
  flex-direction: column;
  gap: 10px;
}

#contactOptions a {
  background: #004aad;
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
  transition: 0.3s;
}

#contactOptions a:hover {
  background: #e6a300;
}

.fade-in {
  animation: fadeIn 1s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Machinery Overview Image Styling */
.machinery-overview {
    padding: 60px 0;
    text-align: center;
}

.machinery-overview .container {
    max-width: 1100px;
    margin: 0 auto;
}

.machinery-overview img.responsive-img {
    width: 100%;
    max-width: 1000px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.machinery-overview img.responsive-img:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

/* Adjust spacing for mobile */
@media (max-width: 768px) {
    .machinery-overview {
        padding: 40px 20px;
    }
    .machinery-overview img.responsive-img {
        border-radius: 6px;
    }
}

/* ===============================
   MACHINERY GRID RESPONSIVE DESIGN
   =============================== */
.machinery-grid {
    padding: 80px 0;
    background-color: #f8f9fb;
}

.machinery-grid h2 {
    text-align: center;
    margin-bottom: 50px;
    font-size: 2rem;
    color: #0c2340;
}

.machine-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.machine-item {
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
    padding: 20px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.machine-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.machine-item img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
}

.machine-item h3 {
    color: #0c2340;
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.machine-item ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
    font-size: 0.95rem;
    color: #333;
    text-align: left;
    line-height: 1.6;
}

.machine-item ul li::before {
    content: "• ";
    color: #0077b6;
}

/* Responsive Tweaks */
@media (max-width: 1024px) {
    .machine-item img {
        height: 200px;
    }
}

@media (max-width: 768px) {
    .machinery-grid {
        padding: 60px 20px;
    }
    .machine-item img {
        height: 180px;
    }
}

@media (max-width: 480px) {
    .machinery-grid h2 {
        font-size: 1.6rem;
    }
    .machine-item {
        padding: 15px;
    }
    .machine-item img {
        height: 160px;
    }
}

/* ===============================
   MACHINERY CARD ANIMATIONS
   =============================== */
.machine-item {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
}

.machine-item:nth-child(1) { animation-delay: 0.1s; }
.machine-item:nth-child(2) { animation-delay: 0.2s; }
.machine-item:nth-child(3) { animation-delay: 0.3s; }
.machine-item:nth-child(4) { animation-delay: 0.4s; }
.machine-item:nth-child(5) { animation-delay: 0.5s; }
.machine-item:nth-child(6) { animation-delay: 0.6s; }

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(40px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Optional: fade-in for overall sections */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: sectionFadeIn 0.9s ease forwards;
}

@keyframes sectionFadeIn {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===============================
   HOVER GLOW EFFECT – MONARK STYLE
   =============================== */
.machine-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 0 20px rgba(0, 119, 182, 0.25),
    0 6px 20px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(0, 119, 182, 0.2);
    transition: all 0.3s ease;
}

.machine-item:hover h3 {
    color: #0077b6; /* Accent blue for headings on hover */
    transition: color 0.3s ease;
}

.machine-item:hover ul li::before {
    color: #0096c7; /* Lighter blue bullet when hovered */
}

/* ===============================
   NAVIGATION & FOOTER HOVER EFFECTS
   =============================== */

/* Navbar Links */
.nav-links a {
    position: relative;
    color: #0c2340;
    font-weight: 500;
    text-decoration: none;
    padding: 8px 14px;
    transition: color 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
   color: #ff6b00;
  transition: color 0.3s ease;
}

.nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0%;
    height: 2px;
    background-color: #0077b6;
    transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

/* Footer Links (general text hover effect) */
footer a,
footer p,
footer h4,
footer h3 {
    color: #0c2340;
    text-decoration: none;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

footer a:hover,
footer p:hover {
    color: #0077b6;
    text-shadow: 0 0 6px rgba(0, 119, 182, 0.4);
}

/* Footer titles glow on hover */
footer h3:hover,
footer h4:hover {
    color: #0077b6;
    text-shadow: 0 0 8px rgba(0, 119, 182, 0.4);
}

.page-banner {
    position: relative;
    background-size: cover;
    background-position: center;
    padding: 160px 0;
    color: white;
    text-align: center;
}

.page-banner .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #0096c7;
}

.page-banner .banner-content {
    position: relative;
    z-index: 2;
}

.page-banner .btn-primary {
    background: #0077b6;
    color: white;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.3s;
}

.page-banner .btn-primary:hover {
    background: #0096c7;
}

/* Fix banner alignment */
.page-banner {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    flex-direction: column;
    /*min-height: 80vh;  taller banner for better centering */
    padding: 0 20px;
}

.page-banner .banner-content {
    position: relative;
    z-index: 2;
    color: #fff;
}

.page-banner .banner-content h1 {
    font-size: 2.5rem;
    margin-bottom: 0.6rem;
    font-weight: 700;
}

.page-banner .banner-content p {
    margin-bottom: 1.2rem;
    font-size: 1.1rem;
}

.page-banner .btn-primary {
    display: inline-block;
    background: #0076b6;
    color: #fff;
    padding: 12px 22px;
    border-radius: 6px;
    font-weight: 600;
    box-shadow: 0 6px 12px rgba(0,0,0,0.2);
    transition: all 0.25s ease-in-out;
}

.page-banner .btn-primary:hover {
    background: #005f8d;
    transform: translateY(-2px);
}

/* Footer fix: better contrast and balance */
footer {
    background: linear-gradient(180deg, #0f2438 0%, #091a2b 100%);
    color: #e9eef5;
    padding: 50px 0 25px;
    font-size: 15px;
}

.footer-grid {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
}

.footer-grid h3,
.footer-grid h4 {
    color: #ffffff;
    margin-bottom: 10px;
    font-weight: 600;
}

.footer-grid p {
    color: #dbe5f5;
    line-height: 1.6;
    margin: 5px 0;
}

.footer-grid p strong {
    color: #ffffff;
}

.footer-grid i {
    color: #ffb703; /* gold icons for accent */
    margin-right: 8px;
}

footer .copyright {
    margin-top: 30px;
    text-align: center;
    color: #bfcbe0;
    font-size: 14px;
    border-top: 3px solid #ff6b00;;
    padding-top: 15px;
}
