/* Global Website Animations */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    animation: globalFadeIn 0.8s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
}

@keyframes globalFadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

/* Colors */
:root {
    --primary-green: #3A8D3F;
    --dark-green: #1F5E2B;
    --light-green: #6FBF73;
    --black: #1E1E1E;
    --white: #FFFFFF;
}

/* Header */

/* Header */

/* ================= HEADER ================= */

.main-header {
    background: #0f6c33;
    position: sticky;
    top: 0;
    z-index: 999;
    transition: 0.4s;
    padding: 10px 0;
}

/* Scroll Effect */

.main-header.scrolled {
    background: #0c5227;
    box-shadow: 0 4px 15px rgba(0,0,0,0.25);
}

/* ================= NAV WRAPPER ================= */

.nav-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* ================= LOGO SECTION ================= */

.logo-box {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Logo Circle */

.logo {
    height: 85px;
    width: 85px;
    object-fit: cover;
    border-radius: 50%;
    background: white;
    padding: 4px;
    border: 3px solid #d1fae5;
    box-shadow: 0 6px 16px rgba(0,0,0,0.2);
}

/* Company Name */

.company-name {
    font-size: 24px;
    font-weight: 600;
    color: white;
    letter-spacing: 1px;
}

/* ================= MENU CENTER BOX ================= */

/* HEADER */

.main-header {
    background: #0f6c33;
    position: sticky;
    top: 0;
    z-index: 999;
    padding: 12px 0;
}

/* FLEX CONTAINER */

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* LOGO SECTION */

.logo-box {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo {
    height: 85px;
    width: 85px;
    border-radius: 50%;
    background: white;
    padding: 5px;
    border: 3px solid #d1fae5;
    box-shadow: 0 6px 18px rgba(0,0,0,0.25);
}

/* COMPANY NAME */

.company-text {
    color: white;
    font-size: 22px;
    font-weight: 600;
}

/* MENU CENTER */

.menu-box {
    background: #1f7a3f;
    padding: 14px 30px;
    border-radius: 10px;
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 22px;
}
.menu-box.open { display: block; }

@media (max-width: 768px) {
  .nav-toggle { display: inline-flex; align-items:center; gap:8px; }
  .menu-box { display: none; width: 100%; }
  .menu-box.open { display: block; }
  .menu-list { flex-direction: column; gap: 12px; padding: 12px 0; }
}

/* MENU LIST */

.menu-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.menu-list li {
    margin: 0 18px;
}

.menu-list a {
    color: white;
    text-decoration: none;
    font-size: 17px;
    position: relative;
}

/* UNDERLINE EFFECT */

.menu-list a::after {
    content: "";
    width: 0%;
    height: 2px;
    background: #90ee90;
    position: absolute;
    left: 50%;
    bottom: -6px;
    transform: translateX(-50%);
    transition: 0.3s;
}

.menu-list a:hover::after,
.menu-list a.active::after {
    width: 100%;
}

/* BUTTON */

.enquire-btn {
    background: white;
    color: #0f6c33;
    padding: 12px 24px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
}

.enquire-btn:hover {
    background: #d1fae5;
}

/* ================= ENQUIRE BUTTON ================= */

.enquire-btn {
    background: white;
    color: #0f6c33;
    padding: 12px 26px;
    border-radius: 6px;
    border: none;
    font-weight: 600;
    transition: 0.3s;
    text-decoration: none;
}

.enquire-btn:hover {
    background: #d1fae5;
    transform: translateY(-2px);
}

/* ================= MOBILE RESPONSIVE ================= */

@media (max-width: 992px) {

    .logo {
        height: 65px;
        width: 65px;
    }

    .company-name {
        font-size: 20px;
    }

    .menu-box {
        padding: 10px 18px;
    }

    .menu-list li {
        margin: 0 10px;
    }

    .menu-list a {
        font-size: 15px;
    }

    .enquire-btn {
        padding: 10px 18px;
        font-size: 14px;
    }
}

/* Hero Section */

.hero-section {
    height: 100vh;
    background: linear-gradient(rgba(31,94,43,0.7), rgba(0,0,0,0.8)),
                url('../img/hero_cnc_machine.png') center/cover no-repeat;
}

.hero-section h1 {
    font-size: 48px;
    font-weight: 700;
}

.hero-section p {
    font-size: 18px;
    margin: 20px 0;
}

/* Buttons */

.btn-success {
    background: var(--primary-green);
    border: none;
}

.btn-success:hover {
    background: var(--dark-green);
}

.section-title {
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--dark-green);
}

/* Service Cards - Premium */

.service-card {
    background: #ffffff;
    padding: 32px 24px;
    border-radius: 14px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 40px rgba(15,108,51,0.08);
    border-top: 4px solid var(--primary-green);
    position: relative;
    overflow: hidden;
    height: 100%;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-green), var(--light-green));
}

.service-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 60px rgba(15,108,51,0.15);
    background: var(--primary-green);
    color: white;
}

.service-card h5 {
  font-size: 18px;
  font-weight: 600;
  color: var(--dark-green);
  margin-bottom: 14px;
  transition: 0.3s;
}

.service-card:hover h5 {
  color: #fff;
}

.service-card ul {
  list-style: none;
  padding: 0;
  text-align: left;
}

.service-card ul li {
  font-size: 13px;
  color: #666;
  padding: 8px 0;
  padding-left: 20px;
  position: relative;
  transition: 0.3s;
}

.service-card ul li::before {
  content: '✓';
  color: var(--primary-green);
  font-weight: bold;
  position: absolute;
  left: 0;
}

.service-card:hover ul li {
  color: rgba(255,255,255,0.9);
}

.service-card:hover ul li::before {
  color: #fff;
}

/* Service card images */
.service-card .service-img {
  width: 100%;
  height: 250px;
  object-fit: contain;
  border-radius: 8px;
  margin-bottom: 15px;
  background: #f8f9fa; /* Light background for 'contain' padding */
}

/* Feature Boxes */

.feature-box {
    background: white;
    padding: 25px;
    border-radius: 10px;
    transition: 0.3s;
}

.feature-box:hover {
    background: var(--primary-green);
    color: white;
    transform: translateY(-5px);
}

/* CTA Section */

.cta-section {
    background: linear-gradient(rgba(31,94,43,0.9), rgba(31,94,43,0.9)),
                url('../images/cta.jpg') center/cover no-repeat;
    padding: 80px 0;
}

/* ===== FOOTER ===== */
.footer {
  background: #0f6c33;
  color: #e6f5ec;
  padding: 60px 8% 20px;
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 40px;
}

.footer-col h4 {
  color: #ffffff;
  margin-bottom: 20px;
  font-size: 18px;
}

/* Logo Section */
.footer-logo {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 15px;
}

.footer-logo-img {
  width: 70px;
  height: 70px;
  object-fit: contain;
  background: white;
  padding: 6px;
  border-radius: 12px;
}

/* Text */
.footer-logo h3 {
  margin: 0;
  color: #ffffff;
}

.footer-logo span {
  color: #d1fae5;
  font-size: 14px;
}

.footer-desc {
  font-size: 14px;
  line-height: 1.6;
  margin: 15px 0;
}

.footer-col ul {
  list-style: none;
  padding: 0;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  text-decoration: none;
  color: #e6f5ec;
  font-size: 14px;
  transition: 0.3s;
}

.footer-col ul li a:hover {
  color: #ffffff;
  padding-left: 4px;
}

/* Contact */
.footer-col p {
  font-size: 14px;
  margin-bottom: 10px;
}

.footer-col i {
  color: #ffffff;
  margin-right: 8px;
}

/* Social Icons FIXED */
.social-icons {
  margin-top: 15px;
  display: flex;
  gap: 15px;
}

.social-icons a {
  width: 50px;
  height: 50px;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  text-decoration: none;
  transition: 0.3s ease;
}

.social-icons a i {
  font-size: 20px;
  color: #0f6c33;
  position: relative;
  left: 2.8px;   /* small adjustment */
  top: 1px;    /* small adjustment */
}


.social-icons a:hover {
  background: #d1fae5;
  transform: translateY(-3px);
}


/* Bottom */
.footer-bottom {
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.2);
  margin-top: 40px;
  padding-top: 20px;
  font-size: 13px;
  color: #d1fae5;
}

/* WhatsApp Button */

.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #25D366;
    color: white;
    font-size: 28px;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    text-decoration: none;
    box-shadow: 0 5px 10px rgba(0,0,0,0.3);
    z-index: 9999;
    transition: transform 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    color: white;
}

.custom-navbar.scrolled {
    background: var(--dark-green) !important;
    transition: 0.4s;
}

/* ================= CLIENT LOGO SLIDER ================= */

.logo-slider {
    overflow: hidden;
    position: relative;
    width: 100%;
}

.logo-track {
    display: flex;
    width: calc(220px * 28);
    animation: scroll 30s linear infinite;
}

/* Logo Images */

.logo-track img {
    width: 160px;
    height: 80px;
    object-fit: contain;
    margin: 0 25px;
    opacity: 0.8;
    transition: 0.3s ease;
}

/* Hover Effect */

.logo-track img:hover {
    opacity: 1;
    transform: scale(1.08);
}

/* Animation */

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Pause on Hover */

.logo-slider:hover .logo-track {
    animation-play-state: paused;
}


/*about page*/

/* Premium Page Banner */

.page-banner {
    background: linear-gradient(135deg, rgba(15,108,51,0.85), rgba(31,94,43,0.85)),
                url('../img/hero_cnc_machine.png') center/cover;
    color: white;
    padding: 100px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.page-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 20% 50%, rgba(111,191,115,0.1), transparent);
  pointer-events: none;
}
.page-banner h1 {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 16px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
  position: relative;
  z-index: 1;
}
.page-banner p {
  font-size: 18px;
  max-width: 600px;
  margin: 0 auto;
  text-shadow: 0 1px 4px rgba(0,0,0,0.2);
  position: relative;
  z-index: 1;
}

/* Section Title */

.section-title {
    color: #0f6c33;
    font-weight: 700;
    margin-bottom: 15px;
    font-size: 32px;
}

/* Mission Vision */

.mv-box {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 10px;
    transition: 0.3s;
    height: 100%;
}

.mv-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

/* Feature Box */

.feature-box {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: 0.3s;
    height: 100%;
}

.feature-box:hover {
    transform: translateY(-5px);
}

/* CTA Section */

.cta-section {
    background: #0f6c33;
    color: white;
    padding: 60px 0;
}

.btn-enquire {
    background: white;
    color: #0f6c33;
    font-weight: 600;
    padding: 12px 25px;
    border-radius: 6px;
    border: none;
}

.btn-enquire:hover {
    background: #d1fae5;
}

/* ===== Core Values Section ===== */
.core-values {
  padding: 80px 8%;
  background: #f5fdf8;
}

.section-title {
  text-align: center;
  font-size: 32px;
  color: #0f6c33;
  margin-bottom: 50px;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.value-card {
  background: #ffffff;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  transition: 0.3s ease;
  border-top: 4px solid #0f6c33;
}

.value-card h3 {
  color: #0f6c33;
  margin-bottom: 15px;
  font-size: 20px;
}

.value-card p {
  font-size: 15px;
  line-height: 1.7;
  color: #444;
}

.value-card:hover {
  transform: translateY(-6px);
}

/* ===== Industrial Experience ===== */
.industrial-experience {
  padding: 80px 8%;
  background: #ffffff;
}

.experience-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.experience-card {
  background: #f5fdf8;
  padding: 30px;
  border-radius: 12px;
  border-left: 4px solid #0f6c33;
  transition: 0.3s ease;
}

.experience-card h3 {
  color: #0f6c33;
  margin-bottom: 15px;
  font-size: 18px;
}

.experience-card p {
  font-size: 15px;
  line-height: 1.7;
  color: #444;
}

.experience-card:hover {
  transform: translateY(-6px);
}

/* ===== Technical Team ===== */
.technical-team {
  padding: 80px 8%;
  background: linear-gradient(180deg,#f7fcf8,#ffffff);
  color: var(--black);
}

.white-title {
  color: var(--dark-green);
}

.team-intro {
  max-width: 800px;
  margin: 0 auto 50px;
  text-align: center;
  font-size: 16px;
  line-height: 1.8;
  color: #444;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.team-card {
  background: #ffffff;
  padding: 30px;
  border-radius: 12px;
  transition: 0.3s ease;
  box-shadow: 0 8px 24px rgba(15,108,51,0.06);
}

.team-card h3 {
  margin-bottom: 15px;
  font-size: 18px;
  color: var(--dark-green);
}

.team-card p {
  font-size: 15px;
  line-height: 1.7;
  color: #444;
}

.team-card:hover {
  transform: translateY(-6px);
}

/* Premium Contact Page Styles */
.contact-section {
  padding: 80px 8%;
  background: linear-gradient(180deg, #f3f7f5, #ffffff);
}
.contact-wrap {
  display: flex;
  gap: 30px;
  align-items: stretch;
}
.contact-card {
  background: #ffffff;
  border-radius: 14px;
  padding: 28px;
  box-shadow: 0 12px 40px rgba(15,108,51,0.08);
  height: 100%;
}
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.info-box {
  display: flex;
  gap: 14px;
  align-items: center;
  background: linear-gradient(90deg, rgba(58,141,63,0.06), rgba(111,191,115,0.03));
  padding: 12px;
  border-radius: 10px;
}
.info-box i {
  background: var(--primary-green);
  color: #fff;
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  font-size: 18px;
}
/* Tidy contact info card: align text, style links and buttons */
.contact-card.contact-info {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 16px;
  padding: 28px 22px;
}
.info-box {
  padding: 12px 14px;
}
.info-box > div > strong {
  display: block;
  font-size: 14px;
  color: var(--dark-green);
  margin-bottom: 4px;
}
.info-box > div > div {
  font-size: 14px;
  color: #445;
  line-height: 1.35;
}
.info-box a {
  color: var(--dark-green);
  text-decoration: none;
  font-weight: 600;
}
.info-box a:hover {
  text-decoration: underline;
}
.contact-info .btn {
  padding: 10px 16px;
  border-radius: 8px;
  font-weight: 600;
}
.contact-info .btn-outline-light {
  background: #fff;
  color: var(--primary-green);
  border: 1px solid rgba(31,94,43,0.08);
}
.contact-info .btn-enquire {
  background: linear-gradient(90deg,var(--primary-green),var(--light-green));
  color: #fff;
  box-shadow: 0 8px 18px rgba(58,141,63,0.12);
}
.contact-form .form-control {
  border-radius: 10px;
  padding: 14px 16px;
  box-shadow: inset 0 2px 6px rgba(0,0,0,0.03);
  border: 1px solid #e6efea;
}
.contact-form .btn-enquire {
  background: linear-gradient(90deg,var(--primary-green),var(--light-green));
  color: #fff;
  padding: 12px 26px;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(58,141,63,0.18);
  border: none;
}
.contact-form .btn-enquire:hover {
  transform: translateY(-3px);
}
.map-card {
  margin-top: 24px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

@media (max-width: 991px) {
  .contact-wrap { flex-direction: column; }
}

/* Global responsive tweaks for better mobile layout */
@media (max-width: 768px) {
  /* Header / Nav */
  .nav-container {
    flex-wrap: wrap;
    gap: 12px;
  }
  .menu-box {
    width: 100%;
    padding: 10px 12px;
    border-radius: 8px;
  }
  .menu-list {
    flex-direction: column;
    gap: 10px;
    align-items: center;
  }
  .menu-list li { margin: 6px 0; }

  /* Hero */
  .hero-section {
    height: auto;
    padding: 80px 0;
    background-position: center top;
  }
  .hero-section h1 { font-size: 28px; }
  .hero-section p { font-size: 15px; }

  /* Banner */
  .page-banner { padding: 60px 0; }
  .page-banner h1 { font-size: 28px; }
  .page-banner p { font-size: 14px; }

  /* Sections spacing */
  .section-title { font-size: 22px; }
  .pre-footer { padding: 20px; }

  /* Cards and images */
  .service-card { padding: 20px; }
  .service-card h5 { font-size: 16px; }
  .service-card ul li { font-size: 12px; }
  .service-card .service-img { height: 140px; }
  .logo-track img { width: 120px; height: 60px; margin: 0 12px; }

  /* Contact page */
  .contact-section { padding: 30px 4%; }
  .contact-card { padding: 18px; }
  .contact-form .form-control { padding: 12px; }

  /* Footer */
  .footer { padding: 32px 6%; }
  .footer-container { gap: 22px; }
}

@media (max-width: 480px) {
  .logo { height: 60px; width: 60px; }
  .company-text { font-size: 16px; }
  .hero-section h1 { font-size: 22px; }
  .section-title { font-size: 18px; }
  .service-card .service-img { height: 120px; }
  .menu-box { padding: 8px; }
  .enquire-btn { padding: 8px 14px; }
}

/* Pre-footer two-panel area */
.pre-footer {
  padding: 40px 8%;
  background: transparent;
}
.pre-footer .panel {
  background: var(--primary-green);
  color: #fff;
  padding: 28px;
  border-radius: 10px;
  box-shadow: 0 8px 30px rgba(15,108,51,0.12);
  min-height: 140px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.pre-footer .panel h3 {
  margin-bottom: 8px;
  color: #ffffff;
}
.pre-footer .panel p {
  color: rgba(255,255,255,0.95);
  margin-bottom: 0;
}

@media (max-width: 768px) {
  .pre-footer { padding: 24px; }
  .pre-footer .panel { margin-bottom: 16px; }
}

.service-card {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: 0.3s;
    height: 100%;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-card ul {
    padding-left: 18px;
}

.service-card li {
    margin-bottom: 6px;
}
