/* ===== GLOBAL STYLES & VARIABLES ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  padding-top: 80px;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  font-family: "Poppins", Tahoma, Geneva, Verdana, sans-serif;
  color: var(--dark);
  line-height: 1.6;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

:root {
  --primary: #1a3a6c;
  --secondary: #c8102e;
  --accent: #f2a900;
  --light: #f8f9fa;
  --dark: #212529;
  --gray: #6c757d;
  --primary-color: #031246;
  --secondary-color: #05314f;
  --accent-color: #4a90e2;
}

.section-title {
  position: relative;
  margin-bottom: 3rem;
}

.section-title:after {
  content: "";
  display: block;
  width: 80px;
  height: 4px;
  background: var(--accent);
  margin: 15px auto;
}

/* ===== TYPOGRAPHY ===== */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  line-height: 1.2;
}

.section-title {
  position: relative;
  margin-bottom: 3rem;
  font-size: 2.5rem;
  color: var(--primary);
  text-align: center;
}

.section-title::after {
  content: "";
  display: block;
  width: 80px;
  height: 4px;
  background: var(--accent);
  margin: 15px auto 30px;
}

/* ===== NAVIGATION ===== */

.navbar {
  background-color: white;
  box-shadow: 0 2px 30px rgba(0, 0, 0, 0.1);
  padding: 15px 0;
  transition: all 0.3s ease;
}

.navbar.scrolled {
  padding: 10px 0;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.logo {
  height: 50px;
  transition: all 0.3s ease;
}

.nav-link {
  font-weight: 500;
  margin: 0 10px;
  position: relative;
  color: var(--primary-color) !important;
}

.nav-link:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: width 0.3s ease;
}

.nav-link {
  list-style: none;
  font-weight: 600;
}
.nav-link:hover:after,
.nav-link.active:after {
  width: 100%;
}

/* Custom hamburger to cross animation */
.navbar-toggler {
  border: none !important;
  padding: 0;
  width: 30px;
  height: 24px;
  position: relative;
  background: transparent;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.navbar-toggler:focus {
  outline: none;
  box-shadow: none;
}

.navbar-toggler span {
  display: block;
  height: 3px;
  width: 100%;
  background: var(--primary-color);
  border-radius: 3px;
  opacity: 1;
  transform: rotate(0deg);
  transition: all 0.3s ease;
}

/* When navbar is expanded (cross icon) */
.navbar-toggler[aria-expanded="true"] span:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

.navbar-toggler[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.navbar-toggler[aria-expanded="true"] span:nth-child(3) {
  transform: rotate(-45deg) translate(8px, -8px);
}

/* Mobile menu styling */
@media (max-width: 991px) {
  .navbar-collapse {
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin-top: 15px;
  }

  .nav-item {
    margin: 10px 0;
    text-align: center;
  }
}

@media screen and (max-width: 500px) {
  .logo {
    height: 40px;
  }
}

/* ===== HERO SECTION ===== */
.hero {
  min-height: 90vh;
  background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
    url("./Assets/SIDEWALL1.png") center/cover no-repeat;
  color: white;
  display: flex;
  align-items: center;
  border-radius: 0 0 50px 50px;
  margin-top: -80px;
  padding-top: 80px;
}

.hero .display-4 {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.hero .lead {
  font-size: 1.25rem;
  max-width: 800px;
  margin: 0 auto;
}

/* ===== ABOUT SECTION ===== */
.about-title {
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.about-image-container {
  overflow: hidden;
  border-radius: 20px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
  height: 100%;
  /* min-height: 400px; */
}

.about-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.about-image-container:hover img {
  transform: scale(1.05);
}

.stat-item {
  text-align: center;
  padding: 1.5rem;
  background: white;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.stat-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 8px;
  line-height: 1;
}

.stat-text {
  font-size: 0.95rem;
  color: var(--gray);
  font-weight: 500;
}

/* ===== CAROUSEL SECTION ===== */
.carosel-asap {
  background-color: #f8f9fa;
  padding: 5rem 0;
}

.carousel-container {
  max-width: 1200px;
  margin: 0 auto;
}

.carousel-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  margin-bottom: 3rem;
}

.carousel-visual {
  position: relative;
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1000px;
}

.carousel-picture {
  position: absolute;
  width: 320px;
  height: 320px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-picture img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.carousel-content {
  padding: 2rem;
}

.carousel-lockup {
  display: none;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.carousel-lockup.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.carousel-lockup h3 {
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 1rem;
  line-height: 1.1;
}

.carousel-subhead {
  color: var(--accent);
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  display: inline-block;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 5px;
}

.carousel-lockup p {
  font-size: 1.15rem;
  color: var(--dark);
  max-width: 450px;
  line-height: 1.7;
}

.carousel-pagination {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}

.carousel-pagination a {
  display: block;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background-color: #ddd;
  transition: all 0.3s ease;
  cursor: pointer;
  border: 2px solid transparent;
}

.carousel-pagination a.active {
  background-color: var(--primary);
  transform: scale(1.3);
  border-color: var(--accent);
}

/* ===== FACILITIES SECTION ===== */
.facility-card {
  margin-bottom: 4rem;
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  transition: all 0.4s ease;
  padding: 2rem;
}

.facility-card:hover {
  transform: translateY(-15px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.facility-img-container {
  height: 350px;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  margin-bottom: 0;
  position: relative;
}

.facility-img-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.facility-card:hover .facility-img-container img {
  transform: scale(1.08);
}

.facility-content {
  padding: 1.5rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
}

.facility-title {
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 1.5rem;
  font-size: 2rem;
  line-height: 1.2;
  position: relative;
  padding-bottom: 15px;
}

.facility-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 4px;
  background: var(--accent);
}

.facility-description {
  color: var(--dark);
  line-height: 1.8;
  font-size: 1.1rem;
  margin-bottom: 0;
}

/* Align content and images properly */
.facility-card .row {
  align-items: center;
  min-height: 400px;
}

/* Ensure consistent spacing */
.facility-card + .facility-card {
  margin-top: 1rem;
}

/* ===== CLIENTS SECTION ===== */
.client-logo {
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: white;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  border: 1px solid #f0f0f0;
}

.client-logo:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
  border-color: var(--accent);
}

.client-logo img {
  max-width: 100%;
  max-height: 80px;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.7;
  transition: all 0.3s ease;
}

.client-logo:hover img {
  filter: grayscale(0);
  opacity: 1;
}

/* ===== QR SECTION ===== */
.qr-section {
  background: linear-gradient(
    135deg,
    var(--primary) 0%,
    var(--secondary-color) 100%
  );
  color: white;
  position: relative;
  overflow: hidden;
}

.qr-section::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 300px;
  height: 300px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
}

.qr-section-img {
  width: 280px;
  max-width: 80vw;
  border-radius: 20px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
  margin-bottom: 2rem;
  position: relative;
  z-index: 2;
  border: 5px solid white;
}

.qr-label {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  position: relative;
  z-index: 2;
  background: linear-gradient(45deg, #fdf497, #fd5949, #d6249f, #285aeb);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* ===== CONTACT SECTION ===== */
.contact {
  background-color: var(--primary);
  color: white;
  position: relative;
  overflow: hidden;
}

.contact::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 400px;
  height: 400px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  transform: translate(40%, -40%);
}

.contact-info {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  padding: 2rem;
  backdrop-filter: blur(10px);
}

.contact-icon {
  color: var(--accent);
  font-size: 1.5rem;
  width: 40px;
  text-align: center;
  flex-shrink: 0;
}

.form-control {
  border: none;
  border-radius: 10px;
  padding: 1rem 1.25rem;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
  font-size: 1rem;
}

.form-control:focus {
  background: rgba(255, 255, 255, 0.15);
  color: white;
  border-color: var(--accent);
  box-shadow: 0 0 0 0.25rem rgba(242, 169, 0, 0.25);
  outline: none;
}

.form-control::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.btn-accent {
  background-color: var(--accent);
  color: var(--dark);
  border: none;
  padding: 1rem 2rem;
  border-radius: 10px;
  font-weight: 700;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.btn-accent:hover {
  background-color: #e09a00;
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

/* ===== WHATSAPP BUTTON ===== */
.floating-whatsapp-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 1000;
}

.whatsapp_float {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 65px;
  height: 65px;
  background-color: #25d366;
  border-radius: 50%;
  box-shadow: 0 6px 25px rgba(37, 211, 102, 0.4);
  transition: all 0.3s ease;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.whatsapp_float::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.whatsapp_float:hover::before {
  width: 100%;
  height: 100%;
}

.whatsapp_float:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 30px rgba(37, 211, 102, 0.6);
}

.whatsapp_float img {
  width: 35px;
  height: 35px;
  position: relative;
  z-index: 1;
}

/* ===== FOOTER ===== */
footer {
  background-color: var(--dark);
  color: white;
  position: relative;
}

.footer-title {
  color: var(--accent);
  font-size: 1.3rem;
  margin-bottom: 1.5rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  transition: all 0.3s ease;
  color: white;
  text-decoration: none;
  font-size: 1.2rem;
}

.social-links a:hover {
  background: var(--accent);
  color: var(--dark);
  transform: translateY(-5px) rotate(5deg);
}

.career-buttons {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.career-buttons a {
  text-align: center;
  padding: 10px 5px;
  font-size: 0.9rem;
  color: white;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-weight: 500;
}

.career-buttons a:hover {
  background-color: var(--accent);
  color: var(--dark);
  border-color: var(--accent);
  transform: translateY(-3px);
}

.text-accent {
  color: var(--accent) !important;
  font-weight: 600;
}

.text-accent:hover {
  color: #e09a00 !important;
}

/* ===== ANIMATIONS ===== */
.fade-left,
.fade-right {
  opacity: 0;
  transform: translateX(0);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-left {
  transform: translateX(-80px);
}

.fade-right {
  transform: translateX(80px);
}

.fade-left.show,
.fade-right.show {
  opacity: 1;
  transform: translateX(0);
}

/* ===== RESPONSIVE STYLES ===== */
@media (max-width: 1200px) {
  .hero .display-4 {
    font-size: 3rem;
  }

  .section-title {
    font-size: 2.2rem;
  }

  .carousel-hero {
    gap: 3rem;
  }

  .carousel-picture {
    width: 280px;
    height: 280px;
  }
}

@media (max-width: 992px) {
  body {
    padding-top: 70px;
  }

  .hero {
    min-height: 80vh;
    border-radius: 0 0 30px 30px;
    margin-top: -70px;
    padding-top: 70px;
  }

  .hero .display-4 {
    font-size: 2.5rem;
  }

  .hero .lead {
    font-size: 1.1rem;
  }

  .carousel-hero {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .carousel-visual {
    height: 320px;
  }

  .carousel-picture {
    width: 250px;
    height: 250px;
  }

  .carousel-lockup h3 {
    font-size: 2.2rem;
  }

  .carousel-subhead {
    font-size: 1.2rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .facility-img-container {
    height: 300px;
  }

  .facility-card .row {
    min-height: auto;
  }

  .facility-title {
    font-size: 1.8rem;
  }

  .facility-description {
    font-size: 1rem;
  }
}

@media (max-width: 768px) {
  .hero .display-4 {
    font-size: 2.2rem;
  }

  .hero .lead {
    font-size: 1rem;
  }

  .carousel-visual {
    height: 280px;
  }

  .carousel-picture {
    width: 220px;
    height: 220px;
  }

  .carousel-lockup h3 {
    font-size: 1.9rem;
  }

  .carousel-subhead {
    font-size: 1.1rem;
  }

  .stat-number {
    font-size: 2rem;
  }

  .facility-img-container {
    height: 250px;
  }

  .facility-card {
    padding: 1.5rem;
  }

  .facility-content {
    padding: 1.5rem 0;
  }

  .client-logo {
    height: 130px;
    padding: 1.5rem;
  }

  .whatsapp_float {
    width: 55px;
    height: 55px;
  }

  .whatsapp_float img {
    width: 30px;
    height: 30px;
  }
}

@media (max-width: 576px) {
  .hero {
    min-height: 70vh;
    border-radius: 0 0 20px 20px;
  }

  .hero .display-4 {
    font-size: 1.9rem;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .carousel-visual {
    height: 240px;
  }

  .carousel-picture {
    width: 200px;
    height: 200px;
  }

  .carousel-content {
    padding: 1rem;
    text-align: center;
  }

  .carousel-lockup h3 {
    font-size: 1.7rem;
  }

  .carousel-subhead {
    font-size: 1rem;
  }

  .carousel-lockup p {
    font-size: 1rem;
    max-width: 100%;
  }

  .stat-item {
    padding: 1rem;
  }

  .stat-number {
    font-size: 1.8rem;
  }

  .facility-img-container {
    height: 220px;
  }

  .facility-card {
    padding: 1.25rem;
    margin-bottom: 3rem;
  }

  .facility-title {
    font-size: 1.6rem;
    margin-bottom: 1rem;
  }

  .facility-description {
    font-size: 0.95rem;
  }

  .qr-section-img {
    width: 220px;
  }

  .qr-label {
    font-size: 1.3rem;
  }

  .floating-whatsapp-btn {
    bottom: 20px;
    right: 20px;
  }

  .whatsapp_float {
    width: 50px;
    height: 50px;
  }

  .whatsapp_float img {
    width: 28px;
    height: 28px;
  }

  .career-buttons {
    grid-template-columns: 1fr;
  }

  .career-buttons a {
    font-size: 0.85rem;
    padding: 12px 5px;
  }
}

/* Fix for iOS Safari */
@supports (-webkit-touch-callout: none) {
  .hero {
    background-attachment: scroll;
  }
}

/* Print styles */
@media print {
  .floating-whatsapp-btn,
  .navbar-toggler,
  .carousel-pagination,
  .social-links,
  .career-buttons {
    display: none !important;
  }

  body {
    padding-top: 0;
  }

  .navbar {
    position: static !important;
    box-shadow: none !important;
  }

  .hero {
    color: black !important;
    background: white !important;
  }
}

/* Smooth scrolling for anchor links */
html {
  scroll-padding-top: 100px;
}

/* ========Additional-Responsive========= */

/* =================== */

/* ===== MACHINES ONE SECTION FIX ===== */

.machines-wrapper {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  overflow: hidden; /* IMPORTANT */
  margin-bottom: 3rem;
}

/* each row inside the same section */
.machine-row {
  display: flex;
  align-items: center;
  gap: 3rem;
  padding-top: 2.5rem;
  padding-left: 2.5rem;
  padding-right: 2.5rem;
}

/* divider line between machines */
/* .machine-row:not(:last-child) {
  border-bottom: 1px solid #eee;
} */

.machine-content,
.machine-img {
  flex: 1;
}

.machine-img img {
  width: 100%;
  height: 340px;
  object-fit: cover;
  border-radius: 12px;
}

/* Desktop alternate layout */
@media (min-width: 768px) {
  .machine-row:nth-child(even) {
    flex-direction: row-reverse;
  }
}

/* Mobile layout */
@media (max-width: 767px) {
  .machine-row {
    flex-direction: column;
    padding: 2rem 1.5rem;
  }

  .machine-img img {
    height: 240px;
  }
}
