:root {
  /* Color System */
  --industrial-navy: #0c2340;
  --engineering-blue: #1f3f60;
  --steel-grey: #8a8f95;
  --industrial-orange: #f26522;
  --background-light: #f5f7fa;
  --text-dark: #1a1a1a;
  --text-light: #ffffff;
  --text-muted: #5a6268;
  --border-color: #e0e4e8;

  /* Typography */
  --font-heading: 'Montserrat', 'Inter', sans-serif;
  --font-body: 'Roboto', 'Open Sans', sans-serif;

  /* Layout */
  --container-width: 1280px;
  --section-padding: 100px 0;

  /* Utilities */
  --transition-fast: 0.3s ease;
  --transition-slow: 0.6s cubic-bezier(0.25, 1, 0.5, 1);
  --box-shadow: 0 10px 30px rgba(12, 35, 64, 0.08);
  --box-shadow-hover: 0 20px 40px rgba(12, 35, 64, 0.15);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background-color: var(--background-light);
  line-height: 1.6;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--industrial-navy);
  line-height: 1.2;
}

p {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

a {
  text-decoration: none;
  color: var(--engineering-blue);
  transition: var(--transition-fast);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: 90%;
  max-width: var(--container-width);
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

/* Typography Utilities */
.text-center {
  text-align: center;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 0;
  width: 60px;
  height: 4px;
  background-color: var(--industrial-orange);
}

.text-center .section-title::after {
  left: 50%;
  transform: translateX(-50%);
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--steel-grey);
  margin-bottom: 3rem;
  max-width: 700px;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.text-center .section-subtitle {
  margin-left: auto;
  margin-right: auto;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 15px 35px;
  font-family: var(--font-heading);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 0.9rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition-fast);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-primary {
  background-color: var(--industrial-orange);
  color: var(--text-light);
}

.btn-primary:hover {
  background-color: #d15116;
  color: var(--text-light);
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(242, 101, 34, 0.3);
}

.btn-secondary {
  background-color: transparent;
  color: var(--text-light);
  border-color: var(--text-light);
}

.btn-secondary:hover {
  background-color: var(--text-light);
  color: var(--industrial-navy);
}

.btn-dark {
  background-color: var(--industrial-navy);
  color: var(--text-light);
}

.btn-dark:hover {
  background-color: var(--engineering-blue);
  box-shadow: 0 10px 20px rgba(12, 35, 64, 0.3);
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 20px 0;
  background-color: transparent;
  transition: var(--transition-fast);
  z-index: 1000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.navbar.scrolled {
  background-color: var(--industrial-navy);
  padding: 15px 0;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 15px;
}

.logo-img {
  height: 55px;
  width: auto;
  border-radius: 4px;
  transition: var(--transition-fast);
}

.navbar.scrolled .logo-img {
  height: 45px;
}

.logo-text {
  font-family: var(--font-heading);
  color: var(--text-light);
  font-size: 1.5rem;
  letter-spacing: 1px;
  font-weight: 800;
  line-height: 1.1;
  border-left: 2px solid var(--industrial-orange);
  padding-left: 15px;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 30px;
}

.nav-links a {
  color: var(--text-light);
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  padding-bottom: 5px;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--industrial-orange);
  transition: var(--transition-fast);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.mobile-menu-btn {
  display: none;
  color: var(--text-light);
  font-size: 1.5rem;
  cursor: pointer;
}

/* Section Common */
section {
  padding: var(--section-padding);
  position: relative;
}

.bg-white {
  background-color: #ffffff;
}

.bg-light {
  background-color: var(--background-light);
}

.bg-dark {
  background-color: var(--industrial-navy);
  color: var(--text-light);
}

.bg-dark .section-title,
.bg-dark h3 {
  color: var(--text-light);
}

.bg-dark .section-subtitle,
.bg-dark p {
  color: rgba(255, 255, 255, 0.7);
}

.grid {
  display: grid;
  gap: 30px;
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

/* --- PAGE SPECIFIC SECTIONS --- */

/* 1. Hero Section */
.hero {
  height: 100vh;
  min-height: 700px;
  display: flex;
  align-items: center;
  position: relative;
  padding: 0;
  overflow: hidden;
  background-color: var(--industrial-navy);
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 110%;
  /* For parallax */
  background-image: url('https://images.unsplash.com/photo-1581091226825-a6a2a5aee158?q=80&w=2070&auto=format&fit=crop');
  background-size: cover;
  background-position: center;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, rgba(12, 35, 64, 0.95) 0%, rgba(12, 35, 64, 0.7) 50%, rgba(12, 35, 64, 0.3) 100%);
  z-index: 1;
}

/* Technical grid overlay */
.hero-grid {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  z-index: 1;
}

.hero-content {
  max-width: 800px;
  position: relative;
  z-index: 2;
}

.hero-label {
  display: inline-block;
  padding: 5px 15px;
  background-color: rgba(242, 101, 34, 0.2);
  color: var(--industrial-orange);
  border: 1px solid var(--industrial-orange);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 2px;
  margin-bottom: 20px;
  text-transform: uppercase;
}

.hero h1 {
  font-size: 4.5rem;
  color: var(--text-light);
  margin-bottom: 20px;
  text-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
  letter-spacing: 2px;
}

.hero p {
  font-size: 1.5rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 40px;
  max-width: 700px;
  font-weight: 300;
}

.hero-btns {
  display: flex;
  gap: 20px;
}

/* 2. Company Introduction */
.about-image {
  position: relative;
  align-self: center;
  /* Prevents grid stretching so border fits image perfectly */
}

.about-image::before {
  content: '';
  position: absolute;
  top: 20px;
  right: -20px;
  width: 100%;
  height: 100%;
  border: 5px solid var(--industrial-orange);
  z-index: 0;
}

.about-image img {
  position: relative;
  z-index: 1;
  box-shadow: var(--box-shadow);
}

.about-stats {
  display: flex;
  gap: 30px;
  margin-top: 40px;
  padding-top: 30px;
  border-top: 1px solid var(--border-color);
}

.stat-item h3 {
  font-size: 3rem;
  color: var(--industrial-orange);
  margin-bottom: 5px;
}

.stat-item p {
  font-family: var(--font-heading);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.9rem;
  color: var(--industrial-navy);
  margin: 0;
}

/* 3. Capabilities */
.capability-card {
  background: #ffffff;
  padding: 40px 30px;
  border: 1px solid var(--border-color);
  border-bottom: 3px solid var(--industrial-orange);
  transition: var(--transition-slow);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.capability-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0;
  background-color: var(--industrial-navy);
  transition: var(--transition-slow);
  z-index: -1;
}

.capability-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--box-shadow-hover);
}

.capability-card:hover::before {
  height: 100%;
}

.capability-card:hover h3,
.capability-card:hover p {
  color: var(--text-light);
}

.cap-icon {
  font-size: 3rem;
  color: var(--industrial-orange);
  margin-bottom: 25px;
  transition: var(--transition-slow);
}

.capability-card h3 {
  font-size: 1.2rem;
  margin-bottom: 15px;
  transition: var(--transition-slow);
}

.capability-card p {
  font-size: 0.95rem;
  margin: 0;
  transition: var(--transition-slow);
}

/* 4. Facilities / Machine Showcase */
.machine-card {
  background: #fff;
  overflow: hidden;
  box-shadow: var(--box-shadow);
  transition: var(--transition-fast);
}

.machine-card:hover {
  transform: translateY(-10px);
}

.machine-img {
  height: 250px;
  overflow: hidden;
  position: relative;
}

.machine-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: contrast(1.1) brightness(1.05) saturate(1.1);
  transition: transform 0.8s ease;
}

.machine-card:hover .machine-img img {
  transform: scale(1.1);
}

.machine-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 10px 20px;
  background: rgba(12, 35, 64, 0.8);
  color: white;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
}

.machine-content {
  padding: 25px;
  border-left: 3px solid var(--industrial-orange);
}

.machine-content h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
}

.spec-list {
  list-style: none;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.spec-list li {
  margin-bottom: 5px;
  display: flex;
  align-items: center;
}

.spec-list li i {
  color: var(--industrial-orange);
  margin-right: 10px;
  font-size: 0.8rem;
}

/* 5. Product Portfolio */
.portfolio-filter {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.filter-btn {
  background: transparent;
  border: 1px solid var(--border-color);
  padding: 8px 20px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  cursor: pointer;
  transition: var(--transition-fast);
  color: var(--industrial-navy);
}

.filter-btn.active,
.filter-btn:hover {
  background: var(--industrial-navy);
  color: white;
  border-color: var(--industrial-navy);
}

.product-card {
  position: relative;
  overflow: hidden;
}

.product-card img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  transition: var(--transition-slow);
}

.product-info {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(12, 35, 64, 0.9);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 30px;
  opacity: 0;
  transform: translateY(20px);
  transition: var(--transition-slow);
}

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

.product-card:hover .product-info {
  opacity: 1;
  transform: translateY(0);
}

.product-info h3 {
  color: white;
  margin-bottom: 10px;
}

.product-info p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
}

/* 6. Manufacturing Process */
.timeline {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
}

.timeline::after {
  content: '';
  position: absolute;
  width: 4px;
  background-color: var(--border-color);
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -2px;
}

.timeline-item {
  padding: 10px 40px;
  position: relative;
  background-color: inherit;
  width: 50%;
}

.timeline-item::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  right: -10px;
  background-color: var(--industrial-orange);
  border: 4px solid white;
  top: 15px;
  border-radius: 50%;
  z-index: 1;
  box-shadow: 0 0 0 4px var(--industrial-navy);
}

.left {
  left: 0;
}

.right {
  left: 50%;
}

.right::after {
  left: -10px;
}

.timeline-content {
  padding: 30px;
  background-color: white;
  position: relative;
  border-radius: 0;
  box-shadow: var(--box-shadow);
  border-top: 3px solid var(--industrial-navy);
}

.timeline-content h3 {
  margin-bottom: 10px;
}

.timeline-icon {
  position: absolute;
  top: -20px;
  right: 20px;
  width: 40px;
  height: 40px;
  background: var(--industrial-navy);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.left .timeline-icon {
  right: auto;
  left: 20px;
}

/* 7. Industries Served */
.industry-card {
  position: relative;
  height: 350px;
  overflow: hidden;
}

.industry-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}

.industry-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(12, 35, 64, 0.9) 0%, rgba(12, 35, 64, 0.1) 100%);
}

.industry-title {
  position: absolute;
  bottom: 30px;
  left: 30px;
  z-index: 2;
  color: white;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 15px;
}

.industry-title i {
  color: var(--industrial-orange);
  font-size: 2rem;
}

.industry-card:hover img {
  transform: scale(1.1);
}

/* 8. Why Us / Trust */
.trust-points {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.trust-item {
  display: flex;
  gap: 20px;
}

.trust-icon {
  width: 60px;
  height: 60px;
  background: rgba(242, 101, 34, 0.1);
  color: var(--industrial-orange);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  flex-shrink: 0;
}

.trust-content h4 {
  font-size: 1.2rem;
  margin-bottom: 5px;
  color: var(--industrial-navy);
}

/* 9. Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 250px;
  gap: 5px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
}

.gallery-item.large {
  grid-column: span 2;
  grid-row: span 2;
}

.gallery-item.wide {
  grid-column: span 2;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.gallery-item::after {
  content: '\f00e';
  /* fa-search-plus */
  font-family: 'Font Awesome 5 Free';
  font-weight: 900;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(242, 101, 34, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 2rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-item:hover img {
  transform: scale(1.1);
}

.gallery-item:hover::after {
  opacity: 1;
}

/* 10. CTA */
.cta-section {
  background-image: linear-gradient(rgba(12, 35, 64, 0.9), rgba(12, 35, 64, 0.9)), url('https://images.unsplash.com/photo-1504917595217-d4dc5ebe6122?q=80&w=2070&auto=format&fit=crop');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  text-align: center;
  padding: 120px 0;
}

.cta-section h2 {
  font-size: 3rem;
  color: white;
  margin-bottom: 30px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* Footer */
footer {
  background: #061223;
  color: rgba(255, 255, 255, 0.7);
  padding: 80px 0 30px;
  border-top: 5px solid var(--industrial-orange);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 50px;
  margin-bottom: 60px;
}

.footer-about .logo-text {
  font-size: 1.2rem;
  margin-bottom: 20px;
  display: inline-block;
}

.footer-desc {
  margin-bottom: 25px;
}

.social-links {
  display: flex;
  gap: 15px;
}

.social-links a {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: white;
}

.social-links a:hover {
  background: var(--industrial-orange);
}

.footer-title {
  color: white;
  font-size: 1.2rem;
  margin-bottom: 25px;
  position: relative;
  padding-bottom: 10px;
}

.footer-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 30px;
  height: 2px;
  background: var(--industrial-orange);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
}

.footer-links a:hover {
  color: var(--industrial-orange);
  padding-left: 5px;
}

.footer-contact li {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
  align-items: flex-start;
}

.footer-contact i {
  color: var(--industrial-orange);
  margin-top: 5px;
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
}

/* Animation Classes */
.reveal {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 1024px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .timeline::after {
    left: 31px;
  }

  .timeline-item {
    width: 100%;
    padding-left: 70px;
    padding-right: 25px;
  }

  .timeline-item::after {
    left: 21px;
  }

  .right {
    left: 0%;
  }
}

@media (max-width: 768px) {

  html,
  body {
    overflow-x: hidden;
    max-width: 100%;
    position: relative;
  }

  .hero h1 {
    font-size: 1.8rem;
    line-height: 1.3;
  }

  .hero p {
    font-size: 1rem;
  }

  .grid-2,
  .grid-3,
  .grid-4,
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .section {
    padding: 40px 15px;
    overflow-x: hidden;
    width: 100%;
  }

  .container {
    padding: 0 15px;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  .capability-detail,
  .capability-detail.reverse {
    padding: 20px 0;
  }

  .capability-detail .cap-text,
  .capability-detail.reverse .cap-text {
    order: 2 !important;
    padding: 0 15px 20px;
  }

  .capability-detail .cap-image-wrap,
  .capability-detail.reverse .cap-image-wrap {
    order: 1 !important;
    margin: 0;
  }

  .product-section .grid-2 div {
    order: inherit !important;
  }

  .product-single-image {
    margin-top: 15px;
  }

  .page-title {
    font-size: 2.0rem;
  }

  .stat-number {
    font-size: 2.5rem;
  }

  .stat-item h3 {
    font-size: 1rem;
  }

  .cta-section h2 {
    font-size: 1.5rem;
    line-height: 1.4;
  }

  .logo-text {
    font-size: 1.1rem;
  }

  .nav-links {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background: var(--industrial-navy);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
  }

  .nav-links.active {
    left: 0;
  }

  .mobile-menu-btn {
    display: block;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-item.large {
    grid-column: span 1;
    grid-row: span 1;
  }

  .gallery-item.wide {
    grid-column: span 1;
  }
}