/* ===== BroTech Industrial Solutions — Design System ===== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Outfit:wght@300;400;500;600;700;800;900&display=swap');

/* ---------- CSS Custom Properties ---------- */
:root {
  /* Colors */
  --bg-primary: #06070d;
  --bg-secondary: #0c0e1a;
  --bg-card: rgba(15, 17, 35, 0.7);
  --bg-glass: rgba(255, 255, 255, 0.03);
  --border-glass: rgba(212, 168, 67, 0.15);
  --border-subtle: rgba(255, 255, 255, 0.06);

  --gold-primary: #d4a843;
  --gold-light: #f0d27a;
  --gold-dark: #b08930;
  --gold-glow: rgba(212, 168, 67, 0.25);

  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.7);
  --text-muted: rgba(255, 255, 255, 0.45);

  --gradient-gold: linear-gradient(135deg, #d4a843 0%, #f0d27a 50%, #b08930 100%);
  --gradient-hero: linear-gradient(180deg, rgba(6, 7, 13, 0) 0%, #06070d 100%);
  --gradient-card: linear-gradient(145deg, rgba(212, 168, 67, 0.08) 0%, rgba(6, 7, 13, 0) 60%);

  /* Typography */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Spacing */
  --section-padding: 100px 0;
  --container-width: 1200px;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-spring: 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ---------- Reset & Base ---------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Scroll Animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 {
  transition-delay: 0.1s;
}

.reveal-delay-2 {
  transition-delay: 0.2s;
}

.reveal-delay-3 {
  transition-delay: 0.3s;
}

.reveal-delay-4 {
  transition-delay: 0.4s;
}

.reveal-delay-5 {
  transition-delay: 0.5s;
}

.reveal-delay-6 {
  transition-delay: 0.6s;
}

/* ---------- Section Titles ---------- */
.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(212, 168, 67, 0.1);
  border: 1px solid rgba(212, 168, 67, 0.2);
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gold-primary);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.section-badge .badge-dot {
  width: 6px;
  height: 6px;
  background: var(--gold-primary);
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.5;
    transform: scale(0.7);
  }
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 18px;
}

.section-title .gold {
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 1.05rem;
  max-width: 600px;
  line-height: 1.8;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header .section-subtitle {
  margin: 0 auto;
}

/* ======================================================== */
/* ---------- NAVBAR ---------- */
/* ======================================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: var(--transition-smooth);
}

.navbar.scrolled {
  background: rgba(6, 7, 13, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 10px 0;
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-logo img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
}

.nav-logo-text {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.5px;
}

.nav-logo-text span {
  color: var(--gold-primary);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: var(--transition-fast);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--gradient-gold);
  border-radius: 2px;
  transition: var(--transition-smooth);
}

.nav-links a:hover {
  color: var(--gold-primary);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-cta {
  padding: 10px 24px;
  background: var(--gradient-gold);
  color: var(--bg-primary) !important;
  border-radius: 100px;
  font-weight: 700 !important;
  font-size: 0.85rem !important;
  letter-spacing: 0.5px;
  transition: var(--transition-smooth) !important;
  box-shadow: 0 4px 20px var(--gold-glow);
}

.nav-cta::after {
  display: none !important;
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(212, 168, 67, 0.4);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  z-index: 1001;
}

.hamburger span {
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition-smooth);
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ======================================================== */
/* ---------- HERO SECTION ---------- */
/* ======================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-gradient-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 50% 40%, rgba(212, 168, 67, 0.06) 0%, transparent 70%),
    linear-gradient(180deg, rgba(6, 7, 13, 0.3) 0%, rgba(6, 7, 13, 0.6) 50%, #06070d 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 850px;
  padding: 0 24px;
}

.hero-logo {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  margin: 0 auto 32px;
  object-fit: cover;
  border: 2px solid rgba(212, 168, 67, 0.3);
  box-shadow: 0 0 60px rgba(212, 168, 67, 0.2), 0 0 120px rgba(212, 168, 67, 0.08);
  animation: logo-float 6s ease-in-out infinite;
}

@keyframes logo-float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-12px);
  }
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 10px;
  letter-spacing: -1px;
}

.hero-title .gold {
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-tagline {
  font-family: var(--font-heading);
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  font-weight: 400;
  color: var(--gold-light);
  margin-bottom: 24px;
  opacity: 0.85;
  font-style: italic;
}

.hero-description {
  color: var(--text-secondary);
  font-size: 1.08rem;
  max-width: 600px;
  margin: 0 auto 40px;
  line-height: 1.8;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 36px;
  background: var(--gradient-gold);
  color: var(--bg-primary);
  border: none;
  border-radius: 100px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition-smooth);
  box-shadow: 0 4px 24px var(--gold-glow);
  letter-spacing: 0.3px;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 40px rgba(212, 168, 67, 0.45);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 36px;
  background: transparent;
  color: var(--text-primary);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 100px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-secondary:hover {
  border-color: var(--gold-primary);
  color: var(--gold-primary);
  background: rgba(212, 168, 67, 0.05);
  transform: translateY(-3px);
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 48px;
  margin-top: 64px;
  padding-top: 40px;
  border-top: 1px solid var(--border-subtle);
}

.hero-stat {
  text-align: center;
}

.hero-stat-number {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 800;
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-stat-label {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 500;
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  animation: bounce-down 2s ease-in-out infinite;
}

.scroll-indicator span {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-muted);
}

.scroll-mouse {
  width: 24px;
  height: 38px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  position: relative;
}

.scroll-mouse::after {
  content: '';
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  height: 8px;
  background: var(--gold-primary);
  border-radius: 3px;
  animation: scroll-wheel 2s ease-in-out infinite;
}

@keyframes scroll-wheel {
  0% {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }

  100% {
    opacity: 0;
    transform: translateX(-50%) translateY(12px);
  }
}

@keyframes bounce-down {

  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }

  50% {
    transform: translateX(-50%) translateY(8px);
  }
}

/* ======================================================== */
/* ---------- ABOUT SECTION ---------- */
/* ======================================================== */
.about {
  padding: var(--section-padding);
  position: relative;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.about-image-wrapper {
  position: relative;
}

.about-image-wrapper::before {
  content: '';
  position: absolute;
  top: -16px;
  left: -16px;
  right: 16px;
  bottom: 16px;
  border: 2px solid rgba(212, 168, 67, 0.15);
  border-radius: var(--radius-lg);
  z-index: 0;
}

.about-image {
  position: relative;
  z-index: 1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--bg-card);
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-content .section-subtitle {
  margin-bottom: 32px;
}

.about-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 32px;
}

.about-feature {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  transition: var(--transition-smooth);
}

.about-feature:hover {
  border-color: var(--border-glass);
  background: rgba(212, 168, 67, 0.04);
}

.about-feature-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(212, 168, 67, 0.1);
  border-radius: var(--radius-sm);
  color: var(--gold-primary);
  font-size: 1.1rem;
  flex-shrink: 0;
}

.about-feature-text {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-secondary);
}

/* Vision & Mission */
.vm-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 40px;
}

.vm-card {
  padding: 28px;
  background: var(--gradient-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(10px);
  transition: var(--transition-smooth);
}

.vm-card:hover {
  transform: translateY(-4px);
  border-color: rgba(212, 168, 67, 0.3);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.vm-card-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(212, 168, 67, 0.12);
  border-radius: var(--radius-md);
  color: var(--gold-primary);
  font-size: 1.3rem;
  margin-bottom: 16px;
}

.vm-card h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--gold-light);
}

.vm-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.75;
}

/* ======================================================== */
/* ---------- SERVICES SECTION ---------- */
/* ======================================================== */
.services {
  padding: var(--section-padding);
  position: relative;
  background: var(--bg-secondary);
}

.services::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212, 168, 67, 0.2), transparent);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.service-card {
  padding: 32px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-gold);
  transform: scaleX(0);
  transition: var(--transition-smooth);
  transform-origin: left;
}

.service-card:hover {
  transform: translateY(-8px);
  border-color: var(--border-glass);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(212, 168, 67, 0.1);
  border: 1px solid rgba(212, 168, 67, 0.15);
  border-radius: var(--radius-md);
  color: var(--gold-primary);
  font-size: 1.5rem;
  margin-bottom: 20px;
  transition: var(--transition-smooth);
}

.service-card:hover .service-icon {
  background: rgba(212, 168, 67, 0.18);
  transform: scale(1.05);
}

.service-card h3 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.service-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ======================================================== */
/* ---------- PRODUCTS SECTION ---------- */
/* ======================================================== */
.products {
  padding: var(--section-padding);
  position: relative;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.product-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: pointer;
  border: 1px solid var(--border-subtle);
  transition: var(--transition-smooth);
}

.product-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-glass);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.product-card-bg {
  position: absolute;
  inset: 0;
  background: var(--bg-card);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  color: rgba(212, 168, 67, 0.15);
  transition: var(--transition-smooth);
}

.product-card:hover .product-card-bg {
  color: rgba(212, 168, 67, 0.25);
  transform: scale(1.05);
}

.product-card-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px;
  background: linear-gradient(0deg, rgba(6, 7, 13, 0.95) 0%, rgba(6, 7, 13, 0.6) 60%, transparent 100%);
  z-index: 1;
}

.product-card-content h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.product-card-content p {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* ======================================================== */
/* ---------- WHY CHOOSE US SECTION ---------- */
/* ======================================================== */
.why-us {
  padding: var(--section-padding);
  background: var(--bg-secondary);
  position: relative;
}

.why-us::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212, 168, 67, 0.2), transparent);
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
}

.why-card {
  padding: 32px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  text-align: center;
  transition: var(--transition-smooth);
  position: relative;
}

.why-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-glass);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35);
}

.why-icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  background: rgba(212, 168, 67, 0.1);
  border: 1px solid rgba(212, 168, 67, 0.15);
  border-radius: 50%;
  color: var(--gold-primary);
  font-size: 1.5rem;
  transition: var(--transition-smooth);
}

.why-card:hover .why-icon {
  background: rgba(212, 168, 67, 0.2);
  transform: scale(1.1) rotate(5deg);
}

.why-card h3 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.why-card p {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ======================================================== */
/* ---------- PARTNERS SECTION ---------- */
/* ======================================================== */
.partners {
  padding: var(--section-padding);
  position: relative;
  overflow: hidden;
}

.partners-track-wrapper {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
}

.partners-track {
  display: flex;
  gap: 48px;
  animation: scroll-partners 30s linear infinite;
  width: max-content;
}

@keyframes scroll-partners {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

.partner-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px 36px;
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  min-width: 160px;
  height: 80px;
  transition: var(--transition-smooth);
}

.partner-logo:hover {
  border-color: var(--border-glass);
  background: rgba(212, 168, 67, 0.05);
}

.partner-logo span {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-secondary);
  letter-spacing: 1px;
  white-space: nowrap;
}

/* ======================================================== */
/* ---------- CONTACT SECTION ---------- */
/* ======================================================== */
.contact {
  padding: var(--section-padding);
  background: var(--bg-secondary);
  position: relative;
}

.contact::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212, 168, 67, 0.2), transparent);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.contact-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  transition: var(--transition-smooth);
}

.contact-card:hover {
  border-color: var(--border-glass);
  transform: translateX(6px);
}

.contact-card-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(212, 168, 67, 0.1);
  border-radius: var(--radius-sm);
  color: var(--gold-primary);
  font-size: 1.2rem;
  flex-shrink: 0;
}

.contact-card h4 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.contact-card p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.contact-card a {
  color: var(--gold-primary);
  transition: var(--transition-fast);
}

.contact-card a:hover {
  color: var(--gold-light);
}

/* Contact Form */
.contact-form {
  padding: 40px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
}

.contact-form h3 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 24px;
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.92rem;
  transition: var(--transition-smooth);
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--gold-primary);
  background: rgba(212, 168, 67, 0.04);
  box-shadow: 0 0 0 3px rgba(212, 168, 67, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.form-submit {
  width: 100%;
  padding: 16px;
  background: var(--gradient-gold);
  color: var(--bg-primary);
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition-smooth);
  letter-spacing: 0.5px;
  margin-top: 8px;
}

.form-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(212, 168, 67, 0.35);
}

/* ======================================================== */
/* ---------- FOOTER ---------- */
/* ======================================================== */
.footer {
  padding: 48px 0 24px;
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-primary);
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-logo img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.footer-logo-text {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.05rem;
}

.footer-logo-text span {
  color: var(--gold-primary);
}

.footer-links {
  display: flex;
  gap: 28px;
}

.footer-links a {
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: var(--transition-fast);
}

.footer-links a:hover {
  color: var(--gold-primary);
}

.footer-bottom {
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer-bottom span {
  color: var(--gold-primary);
}

/* ======================================================== */
/* ---------- RESPONSIVE DESIGN ---------- */
/* ======================================================== */
@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .why-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  :root {
    --section-padding: 70px 0;
  }

  /* Navbar Mobile */
  .hamburger {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: rgba(6, 7, 13, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    gap: 28px;
    padding: 40px;
    transition: var(--transition-smooth);
    border-left: 1px solid var(--border-subtle);
  }

  .nav-links.active {
    right: 0;
  }

  .nav-links a {
    font-size: 1.1rem;
  }

  /* Hero */
  .hero-logo {
    width: 100px;
    height: 100px;
  }

  .hero-stats {
    gap: 24px;
    flex-wrap: wrap;
  }

  .hero-stat-number {
    font-size: 1.6rem;
  }

  /* About */
  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-features {
    grid-template-columns: 1fr;
  }

  .vm-cards {
    grid-template-columns: 1fr;
  }

  /* Services */
  .services-grid {
    grid-template-columns: 1fr;
  }

  /* Products */
  .products-grid {
    grid-template-columns: 1fr;
  }

  /* Why Us */
  .why-grid {
    grid-template-columns: 1fr 1fr;
  }

  /* Contact */
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  /* Footer */
  .footer-top {
    flex-direction: column;
    text-align: center;
  }

  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .why-grid {
    grid-template-columns: 1fr;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .hero-stats {
    flex-direction: column;
    gap: 16px;
  }

  .contact-form {
    padding: 24px;
  }
}

/* ======================================================== */
/* ---------- 3D MACHINERY SCROLL EFFECTS ---------- */
/* ======================================================== */

/* --- Section Dividers with Machinery --- */
.machinery-divider {
  position: relative;
  height: 200px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1000px;
  z-index: 1;
}

.machinery-divider::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212, 168, 67, 0.15), transparent);
}

/* --- 3D Gear Component --- */
.gear-3d {
  position: absolute;
  will-change: transform;
  transition: none;
}

.gear-3d svg {
  filter: drop-shadow(0 0 15px rgba(212, 168, 67, 0.2));
}

/* --- 3D Piston Component --- */
.piston-assembly {
  position: absolute;
  perspective: 800px;
  transform-style: preserve-3d;
}

.piston-cylinder {
  width: 30px;
  height: 100px;
  border: 2px solid rgba(212, 168, 67, 0.25);
  border-radius: 4px 4px 0 0;
  position: relative;
  background: linear-gradient(90deg,
      rgba(212, 168, 67, 0.03),
      rgba(212, 168, 67, 0.08),
      rgba(212, 168, 67, 0.03));
  transform: rotateX(10deg);
}

.piston-rod {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 14px;
  height: 60px;
  background: linear-gradient(90deg,
      rgba(212, 168, 67, 0.15),
      rgba(212, 168, 67, 0.35),
      rgba(212, 168, 67, 0.15));
  border-radius: 3px;
  will-change: transform;
}

.piston-head {
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 8px;
  background: var(--gradient-gold);
  border-radius: 3px;
  box-shadow: 0 0 12px rgba(212, 168, 67, 0.3);
}

/* --- Conveyor Belt Component --- */
.conveyor-belt {
  position: absolute;
  bottom: 30px;
  left: 0;
  right: 0;
  height: 40px;
  overflow: hidden;
  opacity: 0.4;
}

.conveyor-track {
  display: flex;
  gap: 0;
  will-change: transform;
}

.conveyor-segment {
  flex-shrink: 0;
  width: 50px;
  height: 40px;
  border-right: 1px solid rgba(212, 168, 67, 0.15);
  border-top: 2px solid rgba(212, 168, 67, 0.2);
  border-bottom: 2px solid rgba(212, 168, 67, 0.2);
  background: linear-gradient(180deg,
      rgba(212, 168, 67, 0.06),
      rgba(212, 168, 67, 0.02));
}

.conveyor-wheel {
  position: absolute;
  width: 40px;
  height: 40px;
  border: 2px solid rgba(212, 168, 67, 0.25);
  border-radius: 50%;
  background: var(--bg-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  will-change: transform;
}

.conveyor-wheel::before {
  content: '';
  width: 10px;
  height: 10px;
  border: 2px solid rgba(212, 168, 67, 0.3);
  border-radius: 50%;
}

.conveyor-wheel::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 2px;
  background: rgba(212, 168, 67, 0.2);
}

.conveyor-wheel-left {
  left: 10px;
  bottom: 0;
}

.conveyor-wheel-right {
  right: 10px;
  bottom: 0;
}

/* --- Floating Bolt / Nut Elements --- */
.floating-bolt {
  position: absolute;
  opacity: 0.15;
  will-change: transform;
}

.floating-bolt svg {
  filter: drop-shadow(0 0 8px rgba(212, 168, 67, 0.15));
}

/* --- 3D Rotating Cube --- */
.mech-cube {
  position: absolute;
  width: 40px;
  height: 40px;
  transform-style: preserve-3d;
  will-change: transform;
}

.mech-cube-face {
  position: absolute;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(212, 168, 67, 0.2);
  background: rgba(212, 168, 67, 0.04);
  display: flex;
  align-items: center;
  justify-content: center;
}

.mech-cube-face.front {
  transform: translateZ(20px);
}

.mech-cube-face.back {
  transform: rotateY(180deg) translateZ(20px);
}

.mech-cube-face.right {
  transform: rotateY(90deg) translateZ(20px);
}

.mech-cube-face.left {
  transform: rotateY(-90deg) translateZ(20px);
}

.mech-cube-face.top {
  transform: rotateX(90deg) translateZ(20px);
}

.mech-cube-face.bottom {
  transform: rotateX(-90deg) translateZ(20px);
}

/* --- Spark Effect --- */
.mech-sparks {
  position: absolute;
  pointer-events: none;
}

.spark {
  position: absolute;
  width: 3px;
  height: 3px;
  background: var(--gold-primary);
  border-radius: 50%;
  animation: spark-fly 1.5s ease-out infinite;
  box-shadow: 0 0 6px rgba(212, 168, 67, 0.6);
}

.spark:nth-child(1) {
  animation-delay: 0s;
  top: 0;
  left: 5px;
}

.spark:nth-child(2) {
  animation-delay: 0.3s;
  top: -5px;
  left: 15px;
}

.spark:nth-child(3) {
  animation-delay: 0.6s;
  top: 3px;
  left: 25px;
}

.spark:nth-child(4) {
  animation-delay: 0.9s;
  top: -3px;
  left: 10px;
}

.spark:nth-child(5) {
  animation-delay: 1.2s;
  top: 2px;
  left: 20px;
}

@keyframes spark-fly {
  0% {
    opacity: 1;
    transform: translate(0, 0) scale(1);
  }

  50% {
    opacity: 0.8;
  }

  100% {
    opacity: 0;
    transform: translate(var(--sx, 10px), var(--sy, -20px)) scale(0);
  }
}

.spark:nth-child(1) {
  --sx: -15px;
  --sy: -25px;
}

.spark:nth-child(2) {
  --sx: 20px;
  --sy: -18px;
}

.spark:nth-child(3) {
  --sx: -8px;
  --sy: -30px;
}

.spark:nth-child(4) {
  --sx: 12px;
  --sy: -22px;
}

.spark:nth-child(5) {
  --sx: -20px;
  --sy: -15px;
}

/* --- Floating Section Gears (in-section decorations) --- */
.section-gear-bg {
  position: absolute;
  opacity: 0.04;
  pointer-events: none;
  z-index: 0;
}

.services {
  overflow: hidden;
}

.products {
  overflow: hidden;
}

.why-us {
  overflow: hidden;
}

/* --- Progress Bar along gears --- */
.gear-connector-line {
  position: absolute;
  top: 50%;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg,
      transparent 5%,
      rgba(212, 168, 67, 0.1) 20%,
      rgba(212, 168, 67, 0.1) 80%,
      transparent 95%);
  transform: translateY(-50%);
}

.gear-connector-progress {
  height: 100%;
  width: 0%;
  background: var(--gradient-gold);
  border-radius: 2px;
  transition: none;
  box-shadow: 0 0 8px rgba(212, 168, 67, 0.4);
}

/* Responsive: hide complex 3D elements on small screens */
@media (max-width: 768px) {
  .machinery-divider {
    height: 120px;
  }

  .piston-assembly {
    display: none;
  }

  .mech-cube {
    display: none;
  }

  .floating-bolt {
    display: none;
  }

  .conveyor-belt {
    opacity: 0.2;
  }

  .gear-3d svg {
    width: 50% !important;
    height: 50% !important;
  }
}

@media (max-width: 480px) {
  .machinery-divider {
    height: 80px;
  }

  .conveyor-belt {
    display: none;
  }
}