/* ============================================
   FTECHNIK ENGINEERS PVT. LTD. - Global Styles
   Design System: Dark Steel Blue, Industrial Orange
   Mobile-first, Semantic HTML5, Flexbox + Grid
   ============================================ */

/* ---------- CSS Variables ---------- */
:root {
  /* Modern Primary colors - Deep Teal/Blue */
  --color-primary: #0F4C75;
  --color-primary-dark: #0A2E4A;
  --color-primary-light: #1A6BA3;
  --color-primary-darker: #051A2A;
  --color-primary-lighter: #2B8FD4;
  /* Secondary colors - Modern grays */
  --color-secondary: #4A5568;
  --color-secondary-light: #718096;
  --color-secondary-dark: #2D3748;
  /* Accent colors - Vibrant Orange/Coral */
  --color-accent: #FF6B35;
  --color-accent-hover: #FF5722;
  --color-accent-dark: #E64A19;
  --color-accent-light: #FF8A65;
  --color-accent-bright: #FF9F66;
  /* Background colors - Clean modern whites */
  --color-bg: #FFFFFF;
  --color-bg-alt: #F7FAFC;
  --color-bg-light: #EDF2F7;
  --color-bg-dark: #1A202C;
  /* Text colors - High contrast */
  --color-text: #1A202C;
  --color-text-muted: #4A5568;
  --color-text-light: #718096;
  /* Typography */
  --font-heading: 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;
  /* Layout */
  --max-width: 1200px;
  --section-padding: 3rem 1.5rem;
  --section-padding-lg: 4rem 1.5rem;
  --header-height: 72px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: 0.2s ease;
  --transition-slow: 0.5s ease;
  --shadow-sm: 0 2px 8px rgba(15, 76, 117, 0.1);
  --shadow-md: 0 4px 16px rgba(15, 76, 117, 0.15);
  --shadow-lg: 0 8px 32px rgba(15, 76, 117, 0.2);
  --shadow-xl: 0 12px 48px rgba(15, 76, 117, 0.25);
  --shadow-accent: 0 4px 20px rgba(255, 107, 53, 0.3);
  --shadow-accent-lg: 0 8px 32px rgba(255, 107, 53, 0.4);
}

/* ---------- Animations ---------- */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes shimmer {
  0% {
    background-position: -1000px 0;
  }
  100% {
    background-position: 1000px 0;
  }
}

@keyframes gradientShift {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

/* ---------- Reset & Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  animation: fadeIn 0.6s ease-out;
}

/* Animate elements on load */
.section {
  animation: fadeInUp 0.8s ease-out;
}

.section:nth-child(even) {
  animation-delay: 0.1s;
}

.section:nth-child(odd) {
  animation-delay: 0.2s;
}

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

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--color-accent-hover);
}

ul {
  list-style: none;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
  color: var(--color-primary);
}

h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 1rem; }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.5rem); margin-bottom: 0.75rem; }
h4 { font-size: 1.125rem; margin-bottom: 0.5rem; }

.section-title {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 800;
  color: var(--color-primary);
  margin-bottom: 1.5rem;
  text-align: center;
  position: relative;
  animation: fadeInDown 0.8s ease-out both;
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  display: block;
  width: 100%;
  padding-bottom: 1.5rem;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 5px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent), var(--color-primary));
  border-radius: 3px;
  animation: scaleIn 0.6s ease-out 0.3s both;
  box-shadow: 0 2px 8px rgba(255, 107, 53, 0.4);
}

.section-subtitle {
  text-align: center;
  color: var(--color-secondary);
  max-width: 720px;
  margin: 0 auto 2rem;
}

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ---------- Header ---------- */
.site-header {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: var(--color-bg);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 4px 20px rgba(15, 76, 117, 0.3);
  animation: fadeInDown 0.6s ease-out;
  backdrop-filter: blur(10px);
  border-bottom: 3px solid var(--color-accent);
}

@media (max-width: 767px) {
  .site-header {
    position: relative;
  }
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(0.875rem, 2vw, 1.125rem);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--color-bg);
}

.logo a {
  display: flex;
  align-items: center;
  padding: 0.5rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  backdrop-filter: blur(10px);
}

.logo img {
  height: 45px;
  width: auto;
  transition: all var(--transition);
  display: block;
  object-fit: contain;
}


.logo a:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: scale(1.05);
}

.logo a:hover img {
  transform: scale(1.1);
  opacity: 0.9;
}

/* Mobile Navigation */
@media (max-width: 767px) {
  .site-header .header-inner {
    flex-wrap: wrap;
  }

  .menu-icon {
    display: flex;
  }
  
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-slow);
    box-shadow: 0 8px 32px rgba(15, 76, 117, 0.4);
    border-top: 2px solid var(--color-accent);
    order: 99;
  }
  
  .menu-toggle:checked ~ .main-nav {
    max-height: 600px;
    overflow-y: auto;
  }
  
  .main-nav > ul {
    flex-direction: column;
    gap: 0;
    padding: 1rem 0;
    align-items: stretch;
    justify-content: flex-start;
    flex: none;
  }
  
  .main-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 0;
    align-items: stretch;
  }
  
  .main-nav a {
    padding: 1rem 1.5rem;
    font-size: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    text-align: left;
  }
  
  .main-nav a::after {
    left: 0;
    transform: none;
  }
  
  .main-nav a:hover,
  .main-nav a.active {
    background: rgba(255, 107, 53, 0.1);
    padding-left: 2rem;
  }

  .nav-dropdown {
    flex-direction: column;
    align-items: stretch;
  }

  .nav-dropdown-menu {
    position: static;
    transform: none;
    min-height: 0;
    max-height: 0;
    overflow: hidden;
    opacity: 1;
    visibility: visible;
    background: rgba(0, 0, 0, 0.2);
    border: none;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
    transition: max-height 0.25s ease;
  }

  .nav-dropdown.open .nav-dropdown-menu {
    max-height: 200px;
    padding: 0.25rem 0 0.5rem 1.5rem;
  }

  .nav-dropdown-menu a {
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
  }

  .project-card {
    padding: 1.5rem;
  }

  .project-header {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
  }

  .project-image {
    margin-bottom: 1.5rem;
  }

  .project-image img {
    height: 200px;
  }

  .project-items {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .project-items-tiles {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .overseas-card {
    grid-template-columns: 1fr;
  }

  .overseas-image img {
    min-height: 200px;
  }

  .overseas-content {
    padding: 1.5rem;
  }

  .overseas-items {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 768px) {
  .menu-icon {
    display: none;
  }
  
  .logo img {
    height: 50px;
  }
  
  .main-nav > ul {
    gap: 0.25rem;
    justify-content: flex-end;
    flex-wrap: nowrap;
  }
  
  .main-nav a {
    font-size: 0.875rem;
    padding: 0.75rem 1rem;
    text-align: center;
    white-space: nowrap;
  }
}

/* Hamburger Menu Toggle - visible on mobile, hidden on desktop */
.menu-toggle {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.menu-icon {
  display: flex;
  flex-direction: column;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 101;
  gap: 5px;
  align-items: center;
  justify-content: center;
}

.menu-icon span {
  display: block;
  width: 28px;
  height: 3px;
  background: var(--color-bg);
  border-radius: 3px;
  transition: all var(--transition);
}

.menu-toggle:checked ~ .menu-icon span:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

.menu-toggle:checked ~ .menu-icon span:nth-child(2) {
  opacity: 0;
}

.menu-toggle:checked ~ .menu-icon span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* Navigation - horizontal single line */
.main-nav > ul {
  display: flex;
  flex-direction: row;
  gap: 0.25rem;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-end;
  flex: 1;
}

.main-nav a {
  display: block;
  padding: 0.75rem 1rem;
  color: rgba(255,255,255,0.9);
  font-size: 0.875rem;
  position: relative;
  transition: all var(--transition);
  white-space: nowrap;
  flex-shrink: 0;
}

.main-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--color-accent);
  transition: width var(--transition);
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--color-accent);
  text-shadow: 0 0 12px rgba(255, 107, 53, 0.8);
  font-weight: 600;
}

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

.main-nav a.active {
  font-weight: 600;
}

/* Products dropdown */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-trigger i {
  margin-left: 0.25rem;
  font-size: 0.7em;
  transition: transform var(--transition);
}

.nav-dropdown:hover .nav-dropdown-trigger i,
.nav-dropdown.open .nav-dropdown-trigger i {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin: 0.25rem 0 0;
  padding: 0;
  list-style: none;
  min-width: 200px;
  background: rgba(10, 46, 74, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
  z-index: 100;
  display: flex;
  flex-direction: column;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown .nav-dropdown-menu.open {
  opacity: 1;
  visibility: visible;
}

.nav-dropdown-menu li {
  margin: 0;
  display: block;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-dropdown-menu li:last-child {
  border-bottom: none;
}

.nav-dropdown-menu a {
  display: block;
  padding: 0.75rem 1.25rem;
  font-size: 0.875rem;
  border: none;
  border-radius: 0;
  white-space: nowrap;
  line-height: 1.3;
}

.nav-dropdown-menu a::after {
  display: none;
}

.nav-dropdown-menu a:hover {
  background: rgba(255, 107, 53, 0.2);
  padding-left: 1.25rem;
}

/* Mobile: ensure nav and header override base styles */
@media (max-width: 767px) {
  .header-inner {
    position: relative;
  }

  .main-nav > ul {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 1rem 0;
    align-items: stretch;
    justify-content: flex-start;
    flex: none;
    width: 100%;
  }
}

/* ---------- Footer ---------- */
.site-footer {
  background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 100%);
  color: rgba(255,255,255,0.9);
  padding: var(--section-padding-lg);
  margin-top: auto;
  position: relative;
  overflow: hidden;
}

.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--color-accent) 0%, var(--color-accent-bright) 50%, var(--color-accent) 100%);
  background-size: 200% 100%;
  animation: shimmer 3s linear infinite;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  position: relative;
  z-index: 1;
}

.footer-logo-section {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-logo {
  max-width: 200px;
  height: auto;
  opacity: 0.95;
  object-fit: contain;
}

.footer-brand {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.125rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--color-bg);
  margin-bottom: 0.5rem;
}

.footer-section {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-width: 0;
}

.footer-section h3 {
  color: var(--color-bg);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.9375rem;
}

.footer-section p,
.footer-section a {
  color: rgba(255,255,255,0.85);
  font-size: 0.9375rem;
  line-height: 1.6;
}

.footer-section a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: color var(--transition), transform var(--transition);
}

.footer-section a:hover {
  color: var(--color-accent);
  transform: translateX(4px);
}

.footer-section a i {
  font-size: 0.875rem;
  width: 16px;
}

.footer-inner a {
  color: rgba(255,255,255,0.9);
}

.footer-inner a:hover {
  color: var(--color-accent);
  text-shadow: 0 0 8px rgba(255, 107, 53, 0.6);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 1.5rem;
  margin-top: 2rem;
  text-align: center;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.7);
  grid-column: 1 / -1;
}

.footer-social {
  display: flex;
  gap: 1rem;
  margin-top: 0.5rem;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  color: rgba(255,255,255,0.9);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.footer-social a::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: var(--color-accent);
  transform: translate(-50%, -50%);
  transition: width 0.4s, height 0.4s;
  z-index: 0;
}

.footer-social a:hover {
  color: var(--color-bg);
  transform: translateY(-4px) rotate(360deg) scale(1.1);
  box-shadow: 0 6px 16px rgba(255, 107, 53, 0.6);
}

.footer-social a:hover::before {
  width: 100%;
  height: 100%;
}

.footer-social a i {
  position: relative;
  z-index: 1;
  transition: transform var(--transition);
}

.footer-social a:hover i {
  transform: scale(1.2);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9375rem;
  text-align: center;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
  transform: translateY(0);
  margin: 0.5rem 0.25rem;
  text-decoration: none;
  border-radius: 8px;
}

.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
  width: 300px;
  height: 300px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-hover) 100%);
  color: var(--color-bg);
  box-shadow: var(--shadow-accent);
  position: relative;
  z-index: 1;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--color-accent-hover) 0%, var(--color-accent-dark) 100%);
  color: var(--color-bg);
  box-shadow: var(--shadow-accent-lg);
  transform: translateY(-3px) scale(1.05);
}

.btn-primary:active {
  transform: translateY(-1px) scale(1.02);
}

.btn-outline {
  background: transparent;
  color: var(--color-bg);
  border: 2px solid var(--color-bg);
}

.btn-outline:hover {
  background: var(--color-bg);
  color: var(--color-primary);
}

/* ---------- Hero Section ---------- */
.hero {
  background: linear-gradient(135deg, rgba(15, 76, 117, 0.9) 0%, rgba(10, 46, 74, 0.95) 100%),
              url('../assets/images/welding-jigs.jpg') center/cover;
  background-size: cover;
  background-position: center;
  color: var(--color-bg);
  padding: 6rem 1.5rem 8rem;
  text-align: center;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  animation: fadeIn 0.8s ease-out;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(15, 76, 117, 0.85) 0%, rgba(10, 46, 74, 0.9) 100%);
  animation: gradientShift 8s ease infinite;
  background-size: 200% 200%;
  z-index: 0;
}

.hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 30% 50%, rgba(255, 107, 53, 0.15) 0%, transparent 50%);
  z-index: 1;
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 2;
  animation: fadeInUp 1s ease-out 0.3s both;
}

.hero h1 {
  color: var(--color-bg);
  margin-bottom: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  text-shadow: 0 4px 20px rgba(0,0,0,0.3);
  animation: fadeInDown 1s ease-out 0.5s both;
}

.hero p {
  font-size: 1.0625rem;
  max-width: 700px;
  margin: 0 auto 2rem;
  opacity: 0.95;
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  animation: fadeInUp 1s ease-out 0.7s both;
  margin-top: 1.5rem;
}

.hero-buttons .btn {
  animation: scaleIn 0.6s ease-out 0.9s both;
  margin: 0;
}

/* ---------- Section Blocks ---------- */
.section {
  padding: var(--section-padding);
  position: relative;
  animation: fadeInUp 0.8s ease-out both;
}

.section:nth-child(1) { animation-delay: 0.1s; }
.section:nth-child(2) { animation-delay: 0.2s; }
.section:nth-child(3) { animation-delay: 0.3s; }
.section:nth-child(4) { animation-delay: 0.4s; }
.section:nth-child(5) { animation-delay: 0.5s; }

.section-alt {
  background: linear-gradient(135deg, var(--color-bg-alt) 0%, var(--color-bg-light) 100%);
  position: relative;
  border-top: 1px solid rgba(15, 76, 117, 0.1);
  border-bottom: 1px solid rgba(15, 76, 117, 0.1);
  width: 100%;
  padding: 3rem 0 !important;
  margin-left: 0;
  margin-right: 0;
}

.section-alt::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent), var(--color-primary));
  background-size: 200% 100%;
  animation: shimmer 3s linear infinite;
}

.section-light {
  background: linear-gradient(135deg, var(--color-bg-light) 0%, var(--color-bg) 100%);
  position: relative;
}

.section-light::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent), var(--color-primary));
  background-size: 200% 100%;
  animation: shimmer 4s linear infinite;
}

/* ---------- Cards / Service Cards ---------- */
.card-grid {
  display: grid;
  gap: 1.5rem;
  margin-top: 2rem;
}

.card {
  background: var(--color-bg);
  padding: 1.5rem;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(184, 84, 80, 0.15);
  border-left: 4px solid var(--color-primary);
  transition: box-shadow var(--transition);
}

.card h3 i {
  margin-right: 0.5rem;
  color: var(--color-accent);
  font-size: 1.25rem;
}

.card:hover {
  box-shadow: var(--shadow-xl);
  transform: translateY(-10px) scale(1.03);
  border-left-width: 6px;
  border-left-color: var(--color-accent-bright);
  background: linear-gradient(135deg, var(--color-bg) 0%, var(--color-bg-alt) 100%);
}

.card:hover::before {
  left: 100%;
}

.card h3 {
  margin-bottom: 0.5rem;
}

.card p {
  color: var(--color-text-muted);
  font-size: 0.9375rem;
}

/* ---------- Overview / Info Blocks ---------- */
.overview-grid {
  display: grid;
  gap: 2rem;
  margin-top: 0;
  grid-template-columns: 1fr;
}

.info-block {
  animation: fadeInUp 0.6s ease-out both;
  background: linear-gradient(135deg, var(--color-bg) 0%, var(--color-bg-alt) 100%);
  padding: 2rem;
  border-radius: 16px;
  box-shadow: var(--shadow-md);
  border: 2px solid var(--color-bg-light);
  transition: all var(--transition);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.info-block::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent), var(--color-primary));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-slow);
}

.info-block:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-accent);
}

.info-block:hover::before {
  transform: scaleX(1);
}

.info-block:nth-child(1) { animation-delay: 0.1s; }
.info-block:nth-child(2) { animation-delay: 0.2s; }
.info-block:nth-child(3) { animation-delay: 0.3s; }

.info-block h3 {
  color: var(--color-primary);
  margin-bottom: 1rem;
  transition: all var(--transition);
  font-size: clamp(1.125rem, 2vw, 1.375rem);
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.info-block h3 i {
  color: var(--color-accent);
  font-size: 1.5rem;
  transition: all var(--transition);
}

.info-block:hover h3 {
  color: var(--color-accent);
}

.info-block:hover h3 i {
  transform: scale(1.2);
  color: var(--color-primary);
}

.info-block p {
  color: var(--color-text-muted);
  line-height: 1.7;
  margin: 0;
  font-size: 0.9375rem;
}

.info-block ul {
  padding-left: 1.25rem;
}

.info-block li {
  position: relative;
  padding-left: 0.5rem;
  margin-bottom: 0.35rem;
}

.info-block li::before {
  content: "▶";
  position: absolute;
  left: -1.25rem;
  color: var(--color-accent);
  font-size: 0.75rem;
}

/* ---------- CTA Banner ---------- */
.cta-banner {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  background-size: 200% 200%;
  color: var(--color-bg);
  padding: 4rem 1.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  animation: gradientShift 8s ease infinite, fadeIn 0.8s ease-out;
  border-top: 4px solid var(--color-accent);
  border-bottom: 4px solid var(--color-accent);
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 107, 53, 0.25) 0%, transparent 70%);
  animation: float 6s ease-in-out infinite;
}

.cta-banner::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.05) 50%, transparent 70%);
  animation: shimmer 3s linear infinite;
}

.cta-banner .container {
  position: relative;
  z-index: 1;
  animation: fadeInUp 0.8s ease-out 0.3s both;
}

.cta-banner h2 {
  color: var(--color-bg);
  margin-bottom: 1rem;
}

.cta-banner p {
  margin-bottom: 2rem;
  opacity: 0.9;
}

.cta-banner .btn {
  margin: 0.5rem 0.25rem 0;
}

main {
  flex: 1;
}

/* ---------- Page Title (inner pages) ---------- */
.page-header {
  background: var(--color-primary);
  color: var(--color-bg);
  padding: 2rem 1.5rem;
  text-align: center;
}

.page-header h1 {
  color: var(--color-bg);
  font-size: clamp(1.5rem, 3vw, 2rem);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

/* ---------- Content Sections (about, facilities, etc.) ---------- */
.content-section {
  margin-bottom: 3rem;
}

.content-section:last-child {
  margin-bottom: 0;
}

.content-section h2 {
  margin-top: 0;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 3px solid var(--color-accent);
  color: var(--color-primary);
  font-weight: 700;
  font-size: clamp(1.5rem, 3vw, 2rem);
}

.content-section:first-child h2 {
  margin-top: 2rem;
}

.content-section h2 + p {
  margin-bottom: 2.5rem;
  font-size: 1.125rem;
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* Mission & Vision Section - Full Width */
.section-alt .container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.section-alt .content-section {
  width: 100%;
  max-width: 100%;
}

.section-alt .overview-grid {
  width: 100%;
  max-width: 100%;
}

.content-section h3 {
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.content-section p,
.content-section ul {
  margin-bottom: 1rem;
}

.content-section .btn {
  margin-top: 1.5rem;
  margin-bottom: 0;
}

.content-with-image .btn {
  margin-top: 1.5rem;
  margin-bottom: 0;
}

.content-section ul {
  padding-left: 1.5rem;
}

.content-section li {
  margin-bottom: 0.35rem;
  list-style: disc;
}

/* ---------- Team Grid ---------- */
.team-grid {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}

.team-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
  background: linear-gradient(135deg, var(--color-bg) 0%, var(--color-bg-alt) 100%);
  border-radius: 16px;
  box-shadow: var(--shadow-md);
  border-left: 5px solid var(--color-accent);
  transition: all var(--transition);
  animation: fadeInLeft 0.6s ease-out both;
  position: relative;
  overflow: hidden;
}

.team-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0;
  background: linear-gradient(90deg, rgba(255, 107, 53, 0.1), transparent);
  transition: width var(--transition);
  z-index: 0;
}

.team-item:hover {
  transform: translateX(10px);
  box-shadow: var(--shadow-lg);
  border-left-width: 6px;
  border-left-color: var(--color-accent-bright);
  background: linear-gradient(135deg, rgba(255, 107, 53, 0.05) 0%, var(--color-bg-alt) 100%);
}

.team-item:hover::before {
  width: 100%;
}

.team-item > * {
  position: relative;
  z-index: 1;
}

.team-item:nth-child(1) { animation-delay: 0.1s; }
.team-item:nth-child(2) { animation-delay: 0.2s; }
.team-item:nth-child(3) { animation-delay: 0.3s; }
.team-item:nth-child(4) { animation-delay: 0.4s; }
.team-item:nth-child(5) { animation-delay: 0.5s; }

.team-item strong {
  color: var(--color-primary);
  display: block;
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
}

.team-item span {
  color: var(--color-text-muted);
  font-size: 0.9375rem;
  display: block;
}

.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

/* ---------- Project Sections ---------- */
.projects-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
  margin-bottom: 4rem;
}

.project-card {
  background: linear-gradient(135deg, var(--color-bg) 0%, var(--color-bg-alt) 100%);
  border-radius: 24px;
  padding: 3rem;
  box-shadow: var(--shadow-lg);
  border: 2px solid var(--color-bg-light);
  transition: all var(--transition);
  animation: fadeInUp 0.6s ease-out both;
  overflow: hidden;
  position: relative;
}

.project-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent), var(--color-primary));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-slow);
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
  border-color: var(--color-accent);
}

.project-card:hover::before {
  transform: scaleX(1);
}

.project-card:nth-child(1) { animation-delay: 0.1s; }
.project-card:nth-child(2) { animation-delay: 0.2s; }
.project-card:nth-child(3) { animation-delay: 0.3s; }
.project-card:nth-child(4) { animation-delay: 0.4s; }

.project-header {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid var(--color-bg-light);
}

.project-header h2 {
  color: var(--color-primary);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.project-header p {
  color: var(--color-text-muted);
  font-size: 1rem;
  line-height: 1.6;
  margin: 0;
}

/* Project item tiles – designed for large images */
.project-items-tiles {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 0;
}

.project-item-tile {
  background: var(--color-bg);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 2px solid var(--color-bg-light);
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
  animation: fadeInUp 0.5s ease-out both;
}

.project-item-tile:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: var(--color-accent);
}

.project-item-tile img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  object-position: center;
  background: linear-gradient(135deg, var(--color-bg-alt) 0%, var(--color-bg-light) 100%);
  transition: transform var(--transition-slow);
  display: block;
}

.project-item-tile:hover img {
  transform: scale(1.03);
}

.project-item-title {
  padding: 0.875rem 1rem 1rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-primary);
  text-align: center;
  line-height: 1.4;
  display: block;
  border-top: 3px solid var(--color-bg-light);
}

.project-item-tile:hover .project-item-title {
  color: var(--color-accent);
  border-top-color: var(--color-accent);
}

.project-item-tile:nth-child(1) { animation-delay: 0.05s; }
.project-item-tile:nth-child(2) { animation-delay: 0.1s; }
.project-item-tile:nth-child(3) { animation-delay: 0.15s; }
.project-item-tile:nth-child(4) { animation-delay: 0.2s; }
.project-item-tile:nth-child(5) { animation-delay: 0.25s; }
.project-item-tile:nth-child(6) { animation-delay: 0.3s; }
.project-item-tile:nth-child(7) { animation-delay: 0.35s; }
.project-item-tile:nth-child(8) { animation-delay: 0.4s; }
.project-item-tile:nth-child(9) { animation-delay: 0.45s; }
.project-item-tile:nth-child(10) { animation-delay: 0.5s; }
.project-item-tile:nth-child(11) { animation-delay: 0.55s; }

.project-items {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

.project-item {
  background: var(--color-bg);
  padding: 0.875rem 1.25rem;
  border-radius: 8px;
  border-left: 4px solid var(--color-accent);
  color: var(--color-text);
  font-size: 0.9375rem;
  transition: all var(--transition);
  box-shadow: var(--shadow-sm);
}

.project-item:hover {
  background: linear-gradient(135deg, var(--color-bg-alt) 0%, var(--color-bg) 100%);
  transform: translateX(5px);
  border-left-color: var(--color-primary);
  box-shadow: var(--shadow-md);
}

/* Overseas Projects */
.overseas-projects {
  display: grid;
  gap: 2.5rem;
  margin-top: 2rem;
}

.overseas-card {
  background: linear-gradient(135deg, var(--color-bg) 0%, var(--color-bg-alt) 100%);
  border-radius: 20px;
  padding: 0;
  box-shadow: var(--shadow-lg);
  border: 2px solid var(--color-bg-light);
  transition: all var(--transition);
  animation: fadeInUp 0.6s ease-out both;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 0;
}

.overseas-card:nth-child(1) { animation-delay: 0.2s; }
.overseas-card:nth-child(2) { animation-delay: 0.3s; }

.overseas-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
  border-color: var(--color-accent);
}

.overseas-image {
  overflow: hidden;
  position: relative;
}

.overseas-image::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(15, 76, 117, 0.3) 0%, rgba(255, 107, 53, 0.2) 100%);
  opacity: 0;
  transition: opacity var(--transition);
}

.overseas-card:hover .overseas-image::after {
  opacity: 1;
}

.overseas-image img {
  width: 100%;
  height: 100%;
  min-height: 300px;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

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

.overseas-content {
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
}

.overseas-content h3 {
  color: var(--color-primary);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  margin-bottom: 0.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--color-bg-light);
}

.overseas-subtitle {
  color: var(--color-accent);
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 1.5rem;
  margin-top: 0;
}

.overseas-items {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  flex: 1;
}

/* Legacy support */
.project-group {
  margin-bottom: 2.5rem;
  animation: fadeInUp 0.6s ease-out both;
}

.project-group:nth-child(1) { animation-delay: 0.1s; }
.project-group:nth-child(2) { animation-delay: 0.2s; }
.project-group:nth-child(3) { animation-delay: 0.3s; }
.project-group:nth-child(4) { animation-delay: 0.4s; }
.project-group:nth-child(5) { animation-delay: 0.5s; }

.project-group h2 {
  color: var(--color-primary);
  border-bottom: 3px solid var(--color-accent);
  padding-bottom: 0.75rem;
  margin-bottom: 1.5rem;
  position: relative;
  transition: all var(--transition);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
}

.project-group h2::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 3px;
  background: var(--color-primary);
  transition: width var(--transition);
}

.project-group:hover h2::after {
  width: 100%;
}

.project-group ul {
  padding-left: 1.5rem;
}

.project-group li {
  margin-bottom: 0.4rem;
  list-style: disc;
}

/* ---------- Customers Grid ---------- */
.customers-grid {
  display: grid;
  gap: 1.5rem;
  margin-top: 2rem;
}

.customer-card {
  background: linear-gradient(135deg, var(--color-bg) 0%, var(--color-bg-alt) 100%);
  padding: 2rem;
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  text-align: center;
  border: 3px solid var(--color-bg-light);
  transition: all var(--transition);
  animation: fadeInUp 0.6s ease-out both;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.customer-logo {
  width: 100%;
  max-width: 200px;
  height: auto;
  max-height: 120px;
  object-fit: contain;
  margin-bottom: 1rem;
  padding: 1rem;
  background: var(--color-bg);
  border-radius: 12px;
  transition: all var(--transition);
  filter: grayscale(20%);
}

.customer-card:hover .customer-logo {
  filter: grayscale(0%);
  transform: scale(1.1);
}

.customer-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255, 107, 53, 0.1) 0%, rgba(15, 76, 117, 0.1) 100%);
  opacity: 0;
  transition: opacity var(--transition);
  z-index: 0;
}

.customer-card:hover {
  transform: translateY(-10px) scale(1.05);
  box-shadow: var(--shadow-xl);
  border-color: var(--color-accent);
  border-width: 3px;
}

.customer-card:hover::before {
  opacity: 0.1;
}

.customer-card > * {
  position: relative;
  z-index: 1;
}

.customer-card strong {
  color: var(--color-primary);
}

/* ---------- Contact Info ---------- */
.contact-info {
  max-width: 560px;
  margin: 2rem auto;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding: 1.5rem;
  background: linear-gradient(135deg, var(--color-bg-alt) 0%, var(--color-bg-light) 100%);
  border-radius: 16px;
  box-shadow: var(--shadow-md);
  transition: all var(--transition);
  animation: fadeInLeft 0.6s ease-out both;
  border-left: 5px solid var(--color-accent);
}

.contact-item:hover {
  transform: translateX(10px);
  box-shadow: var(--shadow-lg);
  border-left-width: 6px;
  border-left-color: var(--color-accent-bright);
  background: linear-gradient(135deg, var(--color-bg) 0%, var(--color-bg-alt) 100%);
}

.contact-item:nth-child(1) { animation-delay: 0.1s; }
.contact-item:nth-child(2) { animation-delay: 0.2s; }
.contact-item:nth-child(3) { animation-delay: 0.3s; }
.contact-item:nth-child(4) { animation-delay: 0.4s; }
.contact-item:nth-child(5) { animation-delay: 0.5s; }

.contact-item strong {
  min-width: 120px;
  color: var(--color-primary);
  font-weight: 600;
  font-size: 0.9375rem;
}

.contact-item a {
  word-break: break-all;
}

/* ---------- Materials / Industries List ---------- */
.two-col-list {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
}

.two-col-list ul {
  padding-left: 1.5rem;
}

.two-col-list li {
  list-style: disc;
  margin-bottom: 0.35rem;
}

/* ---------- Tablet and Desktop ---------- */
@media (min-width: 768px) {
  .header-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
  }
  
  .main-nav {
    position: static;
    max-height: none;
    overflow: visible;
    background: transparent;
    box-shadow: none;
    border-top: none;
  }

  .main-nav > ul {
    flex-direction: row;
    border: none;
    padding: 0;
    gap: 0.25rem;
  }

  .main-nav a {
    padding: 0.5rem 1rem;
    border: none;
  }

  .section {
    padding: var(--section-padding-lg);
  }

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

  .overview-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  /* Mission & Vision specific styling */
  .mission-vision-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .mission-vision-grid .info-block {
    min-height: 280px;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  
  /* Mission & Vision responsive on mobile */
  @media (max-width: 767px) {
    .mission-vision-grid {
      grid-template-columns: 1fr !important;
      gap: 2rem !important;
    }
    
    .mission-vision-grid .info-block {
      min-height: auto !important;
      padding: 2rem !important;
    }
    
    .mission-vision-grid .info-block > div:first-child {
      font-size: 3rem !important;
    }
  }

  .footer-inner {
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    gap: 2rem;
  }

  .footer-logo-section {
    grid-column: 1;
  }

  .footer-section {
    grid-column: auto;
  }

  .footer-bottom {
    grid-column: 1 / -1;
  }

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

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

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

  .projects-container {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .project-card {
    padding: 2rem;
  }

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

  .project-items.project-items-tiles {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }

  .project-item-tile img {
    height: 160px;
    min-height: 140px;
  }

  .overseas-card {
    grid-template-columns: 1fr 1.5fr;
  }

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

@media (min-width: 992px) {
  .card-grid {
    grid-template-columns: repeat(3, 1fr);
  }

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

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

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

  .projects-container {
    grid-template-columns: 1fr;
    gap: 4rem;
  }

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

  .project-items.project-items-tiles {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }

  .project-item-tile img {
    height: 300px;
    min-height: 160px;
  }

  .project-card {
    padding: 3.5rem;
  }

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

/* ---------- Image Layouts ---------- */
.image-hero {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 16px;
  margin: 2rem 0;
  box-shadow: var(--shadow-xl);
  transition: all var(--transition);
  animation: fadeInUp 0.8s ease-out both;
}

.image-hero-1:hover {
  transform: scale(1.02);
  box-shadow: 0 12px 40px rgba(15, 76, 117, 0.4);
}

.image-hero-1 {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
  margin: 2rem 0;
  box-shadow: var(--shadow-xl);
  transition: all var(--transition);
  animation: fadeInUp 0.8s ease-out both;
}

.image-hero:hover {
  transform: scale(1.02);
  box-shadow: 0 12px 40px rgba(15, 76, 117, 0.4);
}

/* Customers intro – tighter spacing */
.customers-intro {
  padding-bottom: 0.5rem;
}

.content-section-compact {
  margin-bottom: 1.5rem;
}

.content-section-compact h2 + p {
  margin-bottom: 1.25rem;
}

.image-hero-compact {
  margin: 1rem 0;
}

.image-grid {
  display: grid;
  gap: 1.5rem;
  margin: 2rem 0;
}

.image-grid img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  transition: all var(--transition);
  animation: fadeInUp 0.6s ease-out both;
}

.image-grid img:hover {
  transform: translateY(-8px) scale(1.05);
  box-shadow: var(--shadow-xl);
  border-radius: 16px;
}

.image-grid img:nth-child(1) { animation-delay: 0.1s; }
.image-grid img:nth-child(2) { animation-delay: 0.2s; }
.image-grid img:nth-child(3) { animation-delay: 0.3s; }

.image-card {
  background: var(--color-bg);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transition: all var(--transition);
  animation: fadeInUp 0.6s ease-out both;
  position: relative;
  border: 2px solid var(--color-bg-light);
}

.image-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255, 107, 53, 0) 0%, rgba(255, 107, 53, 0.15) 100%);
  opacity: 0;
  transition: opacity var(--transition);
}

.image-card:hover {
  box-shadow: var(--shadow-xl);
  transform: translateY(-12px) scale(1.04);
  border-color: var(--color-accent);
}

.image-card:hover::after {
  opacity: 1;
}

.image-card img {
  transition: transform var(--transition-slow);
}

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

.image-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.image-card-content {
  padding: 1.5rem;
}

.image-card h3 {
  margin-bottom: 0.5rem;
}

.image-card p {
  color: var(--color-text-muted);
  font-size: 0.9375rem;
}

/* Facilities grid – 2 columns, taller cards */
.image-grid.facilities-grid {
  grid-template-columns: 1fr;
  gap: 2rem;
}

.image-grid.facilities-grid .image-card {
  display: block;
}

.image-grid.facilities-grid .image-card img {
  width: 100%;
  height: auto;
  max-height: 220px;
  object-fit: contain;
  object-position: center;
  background: var(--color-bg-alt);
}

@media (min-width: 768px) {
  .image-grid.facilities-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .image-grid.facilities-grid .image-card img {
    max-height: 260px;
  }
}

/* Materials grid – text-only cards (no images) */
.materials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin: 2rem 0;
}

.material-card {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  background: linear-gradient(135deg, var(--color-bg) 0%, var(--color-bg-alt) 100%);
  border-radius: 16px;
  padding: 1.5rem 1.5rem 1.5rem 1.25rem;
  border: 2px solid var(--color-bg-light);
  box-shadow: var(--shadow-md);
  transition: all var(--transition);
  animation: fadeInUp 0.5s ease-out both;
  position: relative;
  overflow: hidden;
}

.material-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--color-accent) 0%, var(--color-primary) 100%);
  opacity: 0.9;
}

.material-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  border-color: var(--color-accent);
}

.material-card:hover .material-card-icon {
  color: var(--color-accent);
  transform: scale(1.08);
}

.material-card-icon {
  flex-shrink: 0;
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 76, 117, 0.12);
  color: var(--color-primary);
  border-radius: 12px;
  font-size: 1.25rem;
  transition: all var(--transition);
}

.material-card-content {
  flex: 1;
  min-width: 0;
}

.material-card-content h3 {
  margin: 0 0 0.5rem 0;
  font-size: 1.125rem;
  color: var(--color-primary);
  font-family: var(--font-heading);
  font-weight: 600;
}

.material-card-content p {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 0.9375rem;
  line-height: 1.5;
}

.material-card:nth-child(1) { animation-delay: 0.05s; }
.material-card:nth-child(2) { animation-delay: 0.1s; }
.material-card:nth-child(3) { animation-delay: 0.15s; }
.material-card:nth-child(4) { animation-delay: 0.2s; }
.material-card:nth-child(5) { animation-delay: 0.25s; }
.material-card:nth-child(6) { animation-delay: 0.3s; }

.content-with-image {
  display: grid;
  gap: 2rem;
  margin: 2rem 0;
  align-items: center;
}

.content-with-image img {
  width: 100%;
  height: auto;
  min-height: 280px;
  max-height: none;
  object-fit: contain;
  object-position: center;
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  transition: all var(--transition);
  animation: slideInRight 0.8s ease-out both;
}

.content-with-image:hover img {
  transform: scale(1.05) rotate(1deg);
  box-shadow: var(--shadow-xl);
}

.content-with-image > div {
  animation: slideInLeft 0.8s ease-out both;
}

/* About section carousel */
.about-carousel {
  position: relative;
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.about-carousel .carousel-track {
  position: relative;
  width: 100%;
  height: 350px;
}

.about-carousel .carousel-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.about-carousel .carousel-slide.active {
  position: relative;
  opacity: 1;
  visibility: visible;
}

.about-carousel .carousel-slide img {
  width: 100%;
  height: 350px;
  object-fit: cover;
  object-position: center;
  border-radius: 16px;
  display: block;
}

.content-with-image:hover .about-carousel .carousel-slide.active img {
  transform: none;
}

.about-carousel .carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: var(--color-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
  box-shadow: var(--shadow-md);
}

.about-carousel .carousel-btn:hover {
  background: var(--color-primary);
  color: #fff;
}

.about-carousel .carousel-prev { left: 12px; }
.about-carousel .carousel-next { right: 12px; }

.about-carousel .carousel-dots {
  position: absolute;
  bottom: 16px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 8px;
  z-index: 2;
}

.about-carousel .carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.about-carousel .carousel-dot:hover,
.about-carousel .carousel-dot.active {
  background: #fff;
}

.about-carousel .carousel-dot.active {
  transform: scale(1.2);
}

/* Product card carousel */
.product-carousel {
  position: relative;
  width: 100%;
  height: 100%;
}

.product-carousel .carousel-track {
  position: relative;
  width: 100%;
  height: 100%;
}

.product-carousel .carousel-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.product-carousel .carousel-slide.active {
  opacity: 1;
  visibility: visible;
}

.product-carousel .carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: var(--color-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
  box-shadow: var(--shadow-md);
}

.product-carousel .carousel-btn:hover {
  background: var(--color-primary);
  color: #fff;
}

.product-carousel .carousel-prev { left: 8px; }
.product-carousel .carousel-next { right: 8px; }

.product-carousel .carousel-dots {
  position: absolute;
  bottom: 10px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 6px;
  z-index: 2;
}

.product-carousel .carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.product-carousel .carousel-dot:hover,
.product-carousel .carousel-dot.active {
  background: #fff;
}

.product-carousel .carousel-dot.active {
  transform: scale(1.15);
}

/* ---------- Spindles page ---------- */
.spindles-page {
  background: var(--color-bg-alt);
}

.spindles-page .section-title {
  margin-bottom: 0.5rem;
}

.spindles-intro {
  max-width: 680px;
  margin: 0 auto 2.5rem;
  text-align: center;
  padding: 0 0.5rem;
}

.spindles-intro-text {
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--color-secondary);
  margin: 0;
}

.spindles-category {
  margin-bottom: 3rem;
  padding: 2rem 0;
}

.spindles-category:nth-child(even) {
  background: var(--color-bg);
  margin-left: -1.5rem;
  margin-right: -1.5rem;
  padding: 2rem 1.5rem;
  border-radius: 12px;
}

.spindles-category:last-of-type {
  margin-bottom: 0;
}

.spindles-category-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-primary);
  margin: 0 0 1.25rem;
  padding-bottom: 0.5rem;
  border-bottom: 3px solid var(--color-accent);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.spindles-category-title i {
  color: var(--color-accent);
  font-size: 1rem;
}

.spindle-products {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: stretch;
}

@media (min-width: 640px) {
  .spindle-products {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.75rem;
  }
}

@media (min-width: 992px) {
  .spindle-products {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem;
  }

}

.spindle-card {
  background: var(--color-bg);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(15, 76, 117, 0.08);
  transition: box-shadow var(--transition);
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(15, 76, 117, 0.08);
}

.spindle-card:hover {
  box-shadow: 0 8px 24px rgba(15, 76, 117, 0.12);
}

.spindle-card-image {
  width: 100%;
  overflow: hidden;
  background: var(--color-bg-light);
  flex-shrink: 0;
  aspect-ratio: 1 / 1;
  position: relative;
  max-height: 350px;
}

.spindle-card-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

.spindle-card-body {
  padding: 1.25rem 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  min-height: 0;
}

.spindle-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 0.75rem;
  color: var(--color-primary);
  line-height: 1.4;
}

.spindle-card .spindle-features-title {
  margin: 0 0 0.5rem;
}

.spindle-features-title {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.spindle-spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8125rem;
}

.spindle-spec-table tbody tr {
  border-bottom: 1px solid var(--color-bg-light);
}

.spindle-spec-table tbody tr:last-child {
  border-bottom: none;
}

.spindle-spec-table th,
.spindle-spec-table td {
  padding: 0.4rem 0;
  text-align: left;
  vertical-align: middle;
  line-height: 1.4;
}

.spindle-spec-table th {
  color: var(--color-secondary);
  font-weight: 500;
  width: 48%;
  font-size: 0.75rem;
  padding-right: 0.5rem;
}

.spindle-spec-table td {
  color: var(--color-text);
  font-weight: 500;
  word-break: break-word;
}

.page-header {
  background: linear-gradient(135deg, rgba(15, 76, 117, 0.95) 0%, rgba(10, 46, 74, 0.95) 100%),
              url('../assets/images/manufacturing-floor.jpg') center/cover;
  background-size: cover;
  background-position: center;
  padding: 5rem 1.5rem;
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  animation: fadeIn 0.8s ease-out;
  border-bottom: 4px solid var(--color-accent);
}

.page-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(15, 76, 117, 0.9) 0%, rgba(10, 46, 74, 0.85) 100%);
  background-size: 200% 200%;
  animation: gradientShift 10s ease infinite;
  z-index: 0;
}

.page-header::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 70% 30%, rgba(255, 107, 53, 0.2) 0%, transparent 60%);
  z-index: 1;
  pointer-events: none;
}

.page-header .container {
  position: relative;
  z-index: 2;
  animation: fadeInUp 0.8s ease-out 0.3s both;
}

.stats-grid {
  display: grid;
  gap: 1.5rem;
  margin: 2rem 0;
}

.stat-card {
  animation: fadeInUp 0.6s ease-out both;
}

.stat-card:nth-child(1) { animation-delay: 0.1s; }
.stat-card:nth-child(2) { animation-delay: 0.2s; }
.stat-card:nth-child(3) { animation-delay: 0.3s; }
.stat-card:nth-child(4) { animation-delay: 0.4s; }

.stat-card {
  background: linear-gradient(135deg, var(--color-bg) 0%, var(--color-bg-alt) 100%);
  padding: 2.5rem;
  border-radius: 20px;
  text-align: center;
  box-shadow: var(--shadow-lg);
  border-top: 5px solid var(--color-accent);
  transition: all var(--transition);
  animation: scaleIn 0.6s ease-out both;
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 107, 53, 0.15) 0%, transparent 70%);
  opacity: 0;
  transition: opacity var(--transition);
}

.stat-card:hover {
  transform: translateY(-8px) scale(1.05);
  box-shadow: var(--shadow-xl);
  border-top-width: 6px;
}

.stat-card:hover::before {
  opacity: 1;
}

.stat-card:nth-child(1) { animation-delay: 0.1s; }
.stat-card:nth-child(2) { animation-delay: 0.2s; }
.stat-card:nth-child(3) { animation-delay: 0.3s; }

.stat-card .number {
  font-size: 3rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-hover) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
  margin-bottom: 0.5rem;
  animation: pulse 2s ease-in-out infinite;
  line-height: 1;
}

.stat-card .label {
  color: var(--color-text-muted);
  font-size: 0.9375rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.feature-image {
  width: 100%;
  max-width: 600px;
  height: auto;
  border-radius: 16px;
  margin: 1.5rem auto;
  display: block;
  box-shadow: var(--shadow-lg);
  transition: all var(--transition);
  animation: fadeInUp 0.8s ease-out both;
}

.feature-image:hover {
  transform: scale(1.05) rotate(1deg);
  box-shadow: var(--shadow-xl);
}

@media (min-width: 768px) {
  .image-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .content-with-image {
    grid-template-columns: 1fr 1fr;
  }

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

  .hero {
    min-height: 600px;
    padding: 6rem 1.5rem 8rem;
  }

  .page-header {
    min-height: 300px;
    padding: 5rem 1.5rem;
  }
}

@media (min-width: 992px) {
  .image-grid {
    grid-template-columns: repeat(3, 1fr);
  }

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

  .image-grid.facilities-grid .image-card img {
    max-height: 300px;
  }

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

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.mb-0 { margin-bottom: 0; }
.mt-2 { margin-top: 2rem; }
.mb-2 { margin-bottom: 2rem; }

.text-center .btn {
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}
