/*
Theme Name: RAD Precision
Theme URI: 
Author: RAD Precision Engineering
Author URI: 
Description: A modern, highly interactive custom WordPress theme for RAD Precision Engineering.
Version: 1.0.0
Text Domain: rad-precision
*/

:root {
  --bg-global: #1E2329;
  --bg-surface: #2A3038;
  --text-main: #F4F4F5;
  --accent-primary: #C5A059;
  --accent-secondary: #14243B;
  --glass-bg: rgba(42, 48, 56, 0.7);
  --glass-border: rgba(255, 255, 255, 0.05);
}

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

body {
  background-color: var(--bg-global);
  color: var(--text-main);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  padding-top: 90px;
}

h1, h2, h3, h4, h5, h6 {
  line-height: 1.2;
  margin-bottom: 1rem;
  font-weight: 700;
}

/* Global Animated Underline for Titles/Subtitles */
.hero-title, .section-title, .department-title, .foundation-title, .about-profile-title, .edge-item-title, .portfolio-title, .premium-portfolio-title, .contact-card-title, .inspection-title, .footer-heading {
  position: relative;
  width: fit-content;
  padding-bottom: 0.1em;
}

.hero-title::after, .section-title::after, .department-title::after, .foundation-title::after, .about-profile-title::after, .edge-item-title::after, .portfolio-title::after, .premium-portfolio-title::after, .contact-card-title::after, .inspection-title::after, .footer-heading::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background-color: var(--accent-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1) 0.3s;
}

/* Trigger animation when element itself, or its parent container, becomes visible */
.visible .hero-title::after, .hero-title.visible::after,
.visible .section-title::after, .section-title.visible::after,
.visible .department-title::after, .department-title.visible::after,
.visible .foundation-title::after, .foundation-title.visible::after,
.visible .about-profile-title::after, .about-profile-title.visible::after,
.visible .edge-item-title::after, .edge-item-title.visible::after,
.visible .portfolio-title::after, .portfolio-title.visible::after,
.visible .premium-portfolio-title::after, .premium-portfolio-title.visible::after,
.visible .contact-card-title::after, .contact-card-title.visible::after,
.visible .inspection-title::after, .inspection-title.visible::after,
.visible .footer-heading::after, .footer-heading.visible::after {
  transform: scaleX(1);
}

/* Fallback / Interactive hover effect */
.hero-title:hover::after, .section-title:hover::after, .department-title:hover::after, .foundation-title:hover::after, .about-profile-title:hover::after, .edge-item-title:hover::after, .portfolio-title:hover::after, .premium-portfolio-title:hover::after, .contact-card-title:hover::after, .inspection-title:hover::after, .footer-heading:hover::after {
  transform: scaleX(1);
}

a {
  color: var(--accent-primary);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--text-main);
}

/* Glassmorphism Header */
.site-header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(30, 35, 41, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 1.25rem 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.3s ease;
}

.site-logo {
  height: 45px;
  width: auto;
  display: block;
  object-fit: contain;
  transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
}

.brand-text {
  font-family: 'Inter', sans-serif;
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: 1px;
  color: #fff;
  text-transform: uppercase;
  transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.brand-text-accent {
  color: var(--accent-primary);
  margin-left: 0.3rem;
  font-weight: 400;
  transition: color 0.5s ease;
}

.header-brand:hover .brand-text {
  letter-spacing: 3px;
  text-shadow: 0 0 20px rgba(197, 160, 89, 0.6);
}

.header-brand:hover .brand-text-accent {
  color: #fff;
}

.header-brand:hover .site-logo {
  transform: rotate(-5deg) scale(1.1);
  filter: drop-shadow(0 0 10px rgba(197, 160, 89, 0.3));
}
.header-right {
  display: flex;
  align-items: center;
  gap: 3rem;
}

.main-navigation ul {
  display: flex;
  list-style: none;
  gap: 2.5rem;
  align-items: center;
  margin: 0;
  padding: 0;
}

.main-navigation a {
  color: var(--text-main);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 1px;
  position: relative;
}

.main-navigation a::after {
  content: '';
  position: absolute;
  width: 100%;
  transform: scaleX(0);
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: var(--accent-primary);
  transform-origin: bottom right;
  transition: transform 0.3s cubic-bezier(0.86, 0, 0.07, 1);
}

.main-navigation a:hover::after {
  transform: scaleX(1);
  transform-origin: bottom left;
}

.main-navigation a:hover {
  color: var(--accent-primary);
}

/* Buttons */
.btn {
  display: inline-block;
  background: var(--accent-primary);
  color: var(--bg-global);
  padding: 0.8rem 2.2rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  box-shadow: 0 4px 15px rgba(197, 160, 89, 0.15);
  z-index: 1;
}

.btn::after {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: var(--accent-secondary);
  z-index: -1;
  transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  transform: scaleX(0);
  transform-origin: right;
}

.btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 30px rgba(197, 160, 89, 0.3);
  color: var(--text-main);
}

.btn:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.main-navigation a.btn {
  color: var(--bg-global);
}

.main-navigation a.btn:hover {
  color: var(--text-main);
}

/* Hero Section */
.hero {
  min-height: calc(100vh - 90px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 0 5%;
  position: relative;
  overflow: hidden;
}

.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(30, 35, 41, 0.7);
  z-index: 1;
}

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

.hero-title {
  font-size: 4.5rem;
  margin-bottom: 1.5rem;
  letter-spacing: -1px;
}

.hero-title span {
  color: var(--accent-primary);
}

.hero-subtitle {
  font-size: 1.25rem;
  margin-bottom: 3rem;
  color: rgba(244, 244, 245, 0.8);
  max-width: 600px;
}

/* Data Bar */
.data-bar {
  display: flex;
  gap: 4rem;
  padding: 4rem 5%;
  background: var(--bg-surface);
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
}

.data-item {
  display: flex;
  flex-direction: column;
}

.data-number {
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--accent-primary);
  line-height: 1;
  margin-bottom: 0.5rem;
  font-variant-numeric: tabular-nums;
}

.data-label {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: rgba(244, 244, 245, 0.6);
  font-weight: 600;
}

/* Departments Grid */
.section {
  padding: 8rem 5%;
}

.section-title {
  font-size: 3rem;
  margin-bottom: 4rem;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.section-title span {
  color: var(--accent-primary);
}

.departments-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
}

.department-card {
  background: var(--bg-surface);
  padding: 3rem 2.5rem;
  border-radius: 8px;
  border: 1px solid var(--glass-border);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.department-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--accent-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.department-card:hover {
  transform: scale(1.02);
  box-shadow: 0 10px 30px rgba(197, 160, 89, 0.15);
  background-color: var(--accent-secondary);
}

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

.department-icon {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  background: rgba(197,160,89, 0.1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  color: var(--accent-primary);
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.department-card:hover .department-icon {
  background: rgba(197, 160, 89, 0.25);
  transform: scale(1.1) rotate(10deg);
  box-shadow: 0 0 20px rgba(197, 160, 89, 0.4);
}

.department-title {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.department-desc {
  color: rgba(244, 244, 245, 0.7);
  line-height: 1.7;
}

/* The RAD Edge Section */
.rad-edge {
  background: linear-gradient(135deg, var(--accent-secondary) 0%, var(--bg-surface) 100%);
  padding: 6rem 5%;
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
}

.edge-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 4rem;
}

.edge-item {
  position: relative;
  padding-left: 2rem;
  border-left: 2px solid rgba(197, 160, 89, 0.3);
}

.edge-letter {
  font-size: 5rem;
  font-weight: 900;
  color: var(--accent-primary);
  opacity: 0.1;
  position: absolute;
  top: -30px;
  left: -10px;
  z-index: -1;
}

.edge-item-title {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  margin-left: auto;
  margin-right: auto;
}

.edge-item-title u {
  text-decoration: none;
  color: var(--accent-primary);
}

/* Our Journey */
.journey-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.journey-image {
  width: 100%;
  height: 100%;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--glass-border);
  position: relative;
  min-height: 300px;
  background-color: var(--bg-surface);
}

.factory-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Products Gallery */
.products-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.product-item {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--glass-border);
  background-color: var(--glass-bg);
  aspect-ratio: 1 / 1;
}

.product-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.product-item:hover .product-img {
  transform: scale(1.15) rotate(-2deg);
}

.product-overlay {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(30, 35, 41, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.product-item:hover .product-overlay {
  opacity: 1;
}

.product-overlay h4 {
  color: var(--accent-primary);
  text-align: center;
  padding: 1rem;
  margin: 0;
  transform: translateY(20px);
  transition: transform 0.4s ease;
}

.product-item:hover .product-overlay h4 {
  transform: translateY(0);
}

/* Page Hero */
.page-hero {
  min-height: 40vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background-color: var(--bg-surface);
  border-bottom: 1px solid var(--glass-border);
}

.page-hero-overlay {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: radial-gradient(circle at center, rgba(197,160,89,0.05), transparent 70%);
}

.page-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 4rem 5%;
}

/* Timeline */
.timeline-container {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
}

.timeline-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 20px;
  height: 100%;
  width: 2px;
  background: var(--glass-border);
}

.timeline-item {
  position: relative;
  padding-left: 60px;
  margin-bottom: 3rem;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-dot {
  position: absolute;
  left: 11px;
  top: 5px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--bg-global);
  border: 3px solid var(--accent-primary);
  box-shadow: 0 0 10px rgba(197, 160, 89, 0.4);
}

.timeline-year {
  font-size: 1.8rem;
  color: var(--accent-primary);
  margin-bottom: 0.5rem;
  font-variant-numeric: tabular-nums;
  font-weight: 800;
}

/* Foundation Grid */
.foundation-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
}

.foundation-card {
  background: var(--bg-surface);
  padding: 3rem;
  border-radius: 8px;
  border: 1px solid var(--glass-border);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.foundation-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(197, 160, 89, 0.15);
}

.foundation-header {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin-bottom: 1.5rem;
}

.foundation-icon-circle {
  width: 60px;
  height: 60px;
  background: rgba(197, 160, 89, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.4s ease;
}

.foundation-card:hover .foundation-icon-circle {
  background: rgba(197, 160, 89, 0.2);
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 0 15px rgba(197, 160, 89, 0.3);
}

.foundation-title {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.foundation-list {
  list-style: none;
  padding: 0;
  margin: auto 0 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 1.5rem;
}

.foundation-list li {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: var(--text-main);
  margin-bottom: 0.8rem;
  font-size: 0.95rem;
}

/* Quality Card */
.quality-card {
  background: linear-gradient(135deg, var(--bg-surface) 0%, var(--accent-secondary) 100%);
  border-radius: 12px;
  padding: 5rem 5%;
  border: 1px solid rgba(197, 160, 89, 0.2);
  text-align: center;
  max-width: 1000px;
  margin: 0 auto;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.quality-quote {
  font-size: 2rem;
  font-weight: 600;
  font-style: italic;
  color: var(--text-main);
  line-height: 1.4;
  margin: 0 auto 3rem auto;
  max-width: 800px;
  position: relative;
}

.quality-quote::before, .quality-quote::after {
  content: '"';
  color: var(--accent-primary);
  opacity: 0.3;
  font-size: 4rem;
  position: absolute;
  top: -20px;
}

.quality-quote::before {
  left: -30px;
}

.quality-quote::after {
  right: -30px;
}

.quality-stats {
  display: flex;
  justify-content: center;
  gap: 5rem;
  padding-top: 3rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.quality-stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Portfolio Gallery */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
}

.portfolio-card {
  background: var(--bg-surface);
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--glass-border);
  transition: all 0.3s ease;
}

.portfolio-card:hover {
  transform: scale(1.02);
  box-shadow: 0 10px 30px rgba(197, 160, 89, 0.15);
  border-color: var(--accent-primary);
}

.portfolio-image-wrapper {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--bg-global); /* placeholder bg */
}

.portfolio-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.portfolio-card:hover .portfolio-image-wrapper img {
  transform: scale(1.08); /* slight scale up inside wrapper */
}

.portfolio-info {
  padding: 2rem;
}

.portfolio-title {
  color: var(--text-main);
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}

.portfolio-desc {
  color: rgba(244, 244, 245, 0.7);
  font-size: 0.95rem;
  margin: 0;
}

/* Footer */
.site-footer {
  background: #14171A;
  padding: 4rem 2rem;
}

/* Inventory Grid */
.inventory-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
}

.inventory-list {
  list-style: none;
  padding: 0;
  margin: 2rem 0 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.inventory-list li {
  padding: 1rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: rgba(244, 244, 245, 0.8);
}

.inventory-list li strong {
  color: var(--accent-primary);
  display: block;
  margin-bottom: 0.3rem;
}

.inventory-tools {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.inventory-tools span {
  background: rgba(42, 48, 56, 0.8);
  border: 1px solid rgba(197, 160, 89, 0.3);
  padding: 0.8rem 1.5rem;
  border-radius: 4px;
  font-weight: 600;
  color: var(--text-main);
  transition: all 0.3s ease;
}

.inventory-tools span:hover {
  border-color: var(--accent-primary);
  background: rgba(197, 160, 89, 0.1);
  transform: translateY(-2px);
}

/* Machine Inventory Summary */
.machine-list-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.machine-list-item {
  background: var(--bg-global);
  padding: 2.5rem 1.5rem;
  border-radius: 8px;
  border: 1px solid var(--glass-border);
  text-align: center;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.machine-list-item:hover {
  transform: scale(1.05); /* slightly bigger pop */
  box-shadow: 0 10px 30px rgba(197, 160, 89, 0.15);
  border-color: var(--accent-primary);
  background: var(--accent-secondary);
}

.machine-qty {
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--accent-primary);
  line-height: 1;
  margin-bottom: 0.8rem;
  font-variant-numeric: tabular-nums;
}

.machine-name {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-main);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Contact Page Refactored Grid */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
}

.contact-info-col {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-card, .contact-form-card {
  background: var(--bg-surface);
  padding: 2.5rem;
  border-radius: 8px;
  border: 1px solid var(--glass-border);
  transition: all 0.3s ease;
}

.contact-card:hover {
  transform: scale(1.02);
  box-shadow: 0 10px 30px rgba(197, 160, 89, 0.15);
  border-color: var(--accent-primary);
}

.contact-card-title {
  color: var(--accent-primary);
  font-size: 1.3rem;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.contact-text {
  color: var(--text-main);
  line-height: 1.6;
}

.contact-people {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.person-name {
  color: var(--text-main);
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.contact-link {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  overflow-wrap: anywhere;
  color: rgba(244, 244, 245, 0.7);
  margin-bottom: 0.5rem;
  transition: color 0.3s ease;
  font-variant-numeric: tabular-nums;
}

.contact-link:hover {
  color: var(--accent-primary);
}

/* Contact Form Specifics */
.rad-contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.form-group label {
  display: block;
  color: var(--text-main);
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.rad-contact-form input,
.rad-contact-form textarea {
  width: 100%;
  background: transparent;
  border: 1px solid #4A5568;
  border-radius: 4px;
  padding: 0.8rem 1rem;
  color: #F4F4F5;
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.rad-contact-form input:focus,
.rad-contact-form textarea:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 1px var(--accent-primary);
}

.submit-btn {
  width: 100%;
  margin-top: 1rem;
  border: none;
  cursor: pointer;
}

/* Inspection Grid */
.inspection-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.inspection-card {
  background: var(--bg-surface);
  padding: 2rem;
  border-radius: 8px;
  border: 1px solid var(--glass-border);
  transition: all 0.3s ease;
}

.inspection-card:hover {
  transform: scale(1.02);
  border-color: var(--accent-primary);
  box-shadow: 0 10px 30px rgba(197, 160, 89, 0.15);
}

.inspection-title {
  color: var(--accent-primary);
  font-size: 1.2rem;
  margin-bottom: 0.8rem;
}

.inspection-desc {
  color: rgba(244, 244, 245, 0.7);
  font-size: 0.95rem;
  line-height: 1.5;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4rem;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-col p {
  color: rgba(244, 244, 245, 0.7);
  margin-bottom: 0.8rem;
  margin-top: 1rem;
}

.footer-col a {
  color: rgba(244, 244, 245, 0.7);
}

.footer-col a:hover {
  color: var(--accent-primary);
}

.footer-heading {
  color: var(--accent-primary);
  margin-bottom: 1.5rem;
  font-size: 1.2rem;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.8rem;
}

.footer-divider {
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  margin-top: 3rem;
  margin-bottom: 2rem;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.footer-bottom {
  text-align: center;
  color: rgba(244, 244, 245, 0.4);
  font-size: 0.9rem;
}

/* About Cinematic Hero */
.about-hero {
  padding: 120px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--glass-border);
}

.about-hero-video {
  position: absolute;
  top: 0; 
  left: 0; 
  width: 100%; 
  height: 100%; 
  object-fit: cover; 
  z-index: -2;
}

.about-hero-overlay {
  position: absolute;
  top: 0; 
  left: 0; 
  width: 100%; 
  height: 100%;
  background: rgba(20, 25, 30, 0.7);
  z-index: -1;
}

.about-hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 800px;
  padding: 0 5%;
}

/* About Split Grid */
.about-split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  max-width: 1200px;
  margin: 0 auto;
}

.about-profile-col {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.about-profile-card {
  background: var(--bg-surface);
  padding: 2.5rem;
  border-radius: 8px;
  border: 1px solid var(--glass-border);
  transition: all 0.3s ease;
}

.about-profile-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  border-color: var(--accent-primary);
}

.about-profile-title {
  color: var(--accent-primary);
  font-size: 1.4rem;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.about-image-col {
  display: flex;
  align-items: stretch;
}

.about-profile-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
  border: 2px solid var(--accent-primary);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
  min-height: 400px;
}

.about-video-wrapper {
  position: relative;
  overflow: hidden;
  padding: 0;
  display: block;
}

.about-video-inner {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.35); /* Crops out the hardcoded black letterboxing */
}

.video-theme-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(30, 35, 41, 0.7) 0%, rgba(197, 160, 89, 0.25) 100%);
  mix-blend-mode: multiply;
  pointer-events: none;
  z-index: 1;
}

/* Philosophy Bar */
.philosophy-bar {
  background: var(--bg-surface);
  padding: 3rem;
  border-radius: 8px;
  border: 1px solid var(--glass-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  gap: 2rem;
  flex-wrap: wrap;
}

.philosophy-item.flex-row {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex: 1;
  min-width: 280px;
}

.philosophy-letter {
  font-size: 4rem;
  font-weight: 900;
  color: var(--accent-primary);
  line-height: 1;
}

/* Excellence Banner */
.excellence-banner {
  background: #22272E;
  border-top: 2px solid var(--accent-primary);
  padding: 6rem 5%;
  text-align: center;
}

.excellence-number {
  font-size: 4rem;
  font-weight: bold;
  color: var(--accent-primary);
  line-height: 1;
  margin-bottom: 0.5rem;
  display: block;
}

/* End-to-End Grid */
.end-to-end-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.dept-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 1.5rem;
}

.dept-tag {
  background: rgba(197, 160, 89, 0.15);
  border: 1px solid rgba(197, 160, 89, 0.3);
  color: var(--accent-primary);
  font-size: 0.85rem;
  padding: 0.4rem 1rem;
  border-radius: 20px;
  transition: all 0.3s ease;
  cursor: default;
}

.department-card:hover .dept-tag {
  background: rgba(197, 160, 89, 0.25);
  border-color: var(--accent-primary);
  box-shadow: 0 0 8px rgba(197, 160, 89, 0.2);
}

.dept-tag:hover {
  background: var(--accent-primary) !important;
  color: var(--bg-global) !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(197, 160, 89, 0.4) !important;
}

.seamless-banner {
  background: var(--bg-surface);
  border: 1px solid var(--accent-primary);
  border-radius: 8px;
  max-width: 1200px;
  margin: 4rem auto 0 auto;
  padding: 3rem 4rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 10px 30px rgba(197, 160, 89, 0.1);
}

.seamless-title {
  font-size: 2rem;
  color: var(--text-main);
  margin-bottom: 0.5rem;
}

.seamless-subtitle {
  color: rgba(244, 244, 245, 0.7);
  font-size: 1.1rem;
  margin: 0;
}

.seamless-right {
  display: flex;
  gap: 4rem;
}

.seamless-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.seamless-stat .stat-number {
  font-size: 4rem;
  font-weight: 900;
  color: var(--accent-primary);
  line-height: 1;
  margin-bottom: 0.5rem;
  font-variant-numeric: tabular-nums;
}

.seamless-stat .stat-label {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: rgba(244, 244, 245, 0.6);
  font-weight: 600;
}

/* Premium Portfolio */
.premium-portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.premium-portfolio-card {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  background-color: #1a1e23;
  aspect-ratio: 4/3;
  cursor: pointer;
  border: 1px solid var(--glass-border);
}

.premium-portfolio-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1), filter 0.6s ease;
  filter: grayscale(80%) brightness(0.6);
}

.premium-portfolio-card:hover .premium-portfolio-img {
  transform: scale(1.08); /* slight scale up */
  filter: grayscale(0%) brightness(1);
}

.premium-portfolio-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(20, 25, 30, 0.9);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2.5rem 1.5rem;
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 2;
}

.premium-portfolio-card:hover .premium-portfolio-overlay {
  opacity: 1;
}

.premium-portfolio-title {
  color: var(--accent-primary);
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
  transform: translateY(20px);
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.premium-portfolio-card:hover .premium-portfolio-title {
  transform: translateY(0);
}

.premium-portfolio-desc {
  color: #fff;
  font-size: 0.95rem;
  line-height: 1.5;
  transform: translateY(20px);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1) 0.1s, opacity 0.4s ease 0.1s;
}

.premium-portfolio-card:hover .premium-portfolio-desc {
  transform: translateY(0);
  opacity: 1;
}

/* Animations */
.hidden {
  opacity: 0;
  transform: translateY(50px) scale(0.95);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.hidden.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}
/* Mobile Navigation Hamburger */
.menu-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  position: relative;
  z-index: 1001; /* Above mobile menu overlay */
}

.hamburger-svg .line {
  transition: all 0.3s ease;
  transform-origin: center;
}

.menu-toggle.is-active .line-top {
  transform: translateY(6px) rotate(45deg);
}

.menu-toggle.is-active .line-middle {
  opacity: 0;
}

.menu-toggle.is-active .line-bottom {
  transform: translateY(-6px) rotate(-45deg);
}

/* Stagger Delays */
.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }
.delay-400 { transition-delay: 400ms; }

/* Equipment Showcase Layouts */
.showcase-section {
  padding-top: 5rem;
}

.showcase-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  max-width: 1400px;
  margin: 0 auto;
}

.showcase-header {
  margin-bottom: 3rem;
}

.showcase-label {
  color: var(--accent-primary);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.9rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.showcase-label::before {
  content: '';
  display: block;
  width: 40px;
  height: 2px;
  background: var(--accent-primary);
}

.showcase-title {
  font-size: 3rem;
  line-height: 1.2;
  color: #fff;
  margin: 0;
}

.machine-card-dark {
  background: var(--bg-surface);
  border-radius: 8px;
  padding: 2rem;
  margin-bottom: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  flex-direction: column;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.machine-card-dark:hover {
  transform: translateY(-5px);
  border-color: rgba(197, 160, 89, 0.4);
  box-shadow: 0 10px 30px rgba(197, 160, 89, 0.08);
}

.machine-card-dark:last-child {
  margin-bottom: 0;
}

.machine-card-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.machine-icon-dark {
  width: 50px;
  height: 50px;
  background: rgba(197, 160, 89, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-primary);
  transition: all 0.4s ease;
}

.machine-icon-dark svg {
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.machine-card-dark:hover .machine-icon-dark {
  background: rgba(197, 160, 89, 0.2);
  box-shadow: 0 0 15px rgba(197, 160, 89, 0.3);
}

.machine-card-dark:hover .machine-icon-dark svg {
  transform: scale(1.15) rotate(5deg);
}

.machine-name-dark {
  font-size: 1.4rem;
  margin: 0;
  color: #fff;
}

.specs-grid-dark {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
}

.spec-box-dark {
  background: rgba(0, 0, 0, 0.2);
  padding: 1rem;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.03);
  transition: all 0.3s ease;
}

.machine-card-dark:hover .spec-box-dark {
  background: rgba(197, 160, 89, 0.03);
  border-color: rgba(197, 160, 89, 0.2);
}

.spec-box-dark:hover {
  background: rgba(197, 160, 89, 0.08) !important;
  transform: translateY(-2px);
  border-color: var(--accent-primary) !important;
}

.spec-label-dark {
  display: block;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 0.5rem;
}

.spec-value-dark {
  display: block;
  color: var(--accent-primary);
  font-weight: bold;
  font-size: 1.2rem;
}

.showcase-visuals {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.showcase-image-box {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  height: 100%;
  min-height: 250px;
  transition: box-shadow 0.4s ease;
}

.showcase-image-box:hover {
  box-shadow: 0 15px 40px rgba(197, 160, 89, 0.15);
}

.showcase-image-box img {
  max-width: 100%;
  max-height: 300px;
  object-fit: contain;
  transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.showcase-image-box:hover img {
  transform: scale(1.05);
}

.advantages-card {
  background: transparent;
  border: 1px solid rgba(197, 160, 89, 0.3);
  border-radius: 8px;
  padding: 2rem;
}

.advantages-title {
  color: var(--accent-primary);
  font-size: 1.3rem;
  margin-bottom: 1.5rem;
}

.advantages-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.advantages-list li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  color: #fff;
  transition: transform 0.3s ease;
}

.advantages-list li:hover {
  transform: translateX(10px);
}

.advantages-list li svg {
  flex-shrink: 0;
  margin-top: 3px;
  transition: transform 0.3s ease;
}

.advantages-list li:hover svg {
  transform: scale(1.2);
}

.advantages-list li div strong {
  display: block;
  font-size: 1rem;
  margin-bottom: 0.2rem;
}

.advantages-list li div span {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
}

.forming-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.simple-check-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.simple-check-list li {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.95rem;
}

.single-spec {
  display: inline-block;
  min-width: 250px;
}

/* Responsive */
@media (max-width: 768px) {
  .hero-title { font-size: 2.8rem; }
  .data-bar { flex-direction: column; gap: 3rem; align-items: center; text-align: center; }
  .header-cta .btn { padding: 0.5rem 1.2rem; font-size: 0.85rem; }
  .menu-toggle { display: block; margin-left: 1rem; }
  .header-right { gap: 0; }
  
  .main-navigation {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100vh;
    background: rgba(30, 35, 41, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
  }
  
  .main-navigation.is-active {
    opacity: 1;
    visibility: visible;
  }
  
  .main-navigation ul {
    flex-direction: column;
    text-align: center;
    gap: 2rem;
    display: flex;
  }
  
  .main-navigation a {
    font-size: 1.5rem;
    padding: 1rem;
    display: block;
  }
  .site-logo { height: 35px; }
  .section { padding: 4rem 5%; }
  .journey-grid { grid-template-columns: 1fr; gap: 2rem; }
  .products-gallery { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .timeline-container::before { left: 15px; }
  .timeline-dot { left: 6px; }
  .timeline-item { padding-left: 45px; }
  .foundation-grid { grid-template-columns: 1fr; }
  .quality-stats { flex-direction: column; gap: 3rem; }
  .quality-quote { font-size: 1.4rem; padding: 0 1rem; }
  .quality-quote::before, .quality-quote::after { display: none; }
  .inventory-grid { grid-template-columns: 1fr; }
  .inspection-grid { grid-template-columns: 1fr; }
  .portfolio-grid { grid-template-columns: 1fr; }
  .premium-portfolio-grid { grid-template-columns: 1fr; }
  .machine-list-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-people { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .about-split-grid { grid-template-columns: 1fr; }
  .philosophy-bar { flex-direction: column; align-items: flex-start; }
  .end-to-end-grid { grid-template-columns: 1fr; }
  .seamless-banner { flex-direction: column; text-align: center; gap: 3rem; padding: 2rem; }
  .seamless-right { flex-direction: column; gap: 2rem; align-items: center; }
  .showcase-grid { grid-template-columns: 1fr; }
  .forming-grid { grid-template-columns: 1fr; }
  .showcase-title { font-size: 2rem; }
  .machine-name-dark { font-size: 1.2rem; }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); gap: 2rem; }
  .premium-portfolio-grid { grid-template-columns: repeat(2, 1fr); }
  .machine-list-grid { grid-template-columns: repeat(3, 1fr); }
  .inventory-grid { grid-template-columns: 1fr; }
  .foundation-grid { grid-template-columns: repeat(2, 1fr); }
  .end-to-end-grid { grid-template-columns: repeat(2, 1fr); }
}
