/* ============================================
   APEX TOOLING — PRECISION ENGINEERING WEBSITE
   Dark Industrial Theme
   ============================================ */

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--light-gray);
  background-color: var(--bg-primary);
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--cyan); text-decoration: none; transition: color .25s; }
a:hover { color: var(--green); }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* ---------- COLOR SYSTEM ---------- */
:root {
  --bg-primary: #0b1114;
  --bg-secondary: #10191c;
  --bg-card: #142124;
  --bg-card-hover: #192a2e;
  --bg-elevated: #1a2e33;

  --cyan: #00d9ff;
  --cyan-dark: #009fb8;
  --cyan-glow: rgba(0, 217, 255, 0.15);

  --green: #19d879;
  --green-dark: #0b9f59;
  --green-glow: rgba(25, 216, 121, 0.12);

  --gray: #718186;
  --light-gray: #c5d0d3;
  --white: #f1f7f8;

  --warning: #f5a623;
  --error: #ff5b5b;

  --border: rgba(0, 217, 255, 0.12);
  --border-hover: rgba(0, 217, 255, 0.35);

  --shadow-sm: 0 2px 8px rgba(0,0,0,0.3);
  --shadow-md: 0 8px 24px rgba(0,0,0,0.4);
  --shadow-lg: 0 20px 60px rgba(0,0,0,0.5);
  --shadow-glow: 0 0 40px rgba(0, 217, 255, 0.08);

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;

  --container: 1200px;
  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- TYPOGRAPHY ---------- */
h1, h2, h3, h4, h5 {
  font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
  color: var(--white);
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.2rem, 5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.8rem); }
h4 { font-size: 1.15rem; }

p { color: var(--light-gray); }

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 1rem;
  position: relative;
  padding-left: 2.5rem;
}
.eyebrow::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  width: 2rem; height: 2px;
  background: var(--cyan);
  transform: translateY(-50%);
}

.section-title { text-align: center; margin-bottom: 1rem; }
.section-subtitle {
  text-align: center;
  font-size: 1.05rem;
  color: var(--gray);
  max-width: 640px;
  margin: 0 auto 3.5rem;
}

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

section { padding: 6rem 0; position: relative; }
section.tight { padding: 4rem 0; }

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

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 2rem;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--cyan), var(--cyan-dark));
  color: var(--bg-primary);
}
.btn-primary:hover {
  color: var(--bg-primary);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 217, 255, 0.35);
}
.btn-secondary {
  background: transparent;
  color: var(--green);
  border: 2px solid var(--green);
}
.btn-secondary:hover {
  color: var(--bg-primary);
  background: var(--green);
  transform: translateY(-2px);
}
.btn-ghost {
  background: rgba(255,255,255,0.05);
  color: var(--white);
  border: 1px solid var(--border);
}
.btn-ghost:hover {
  color: var(--cyan);
  border-color: var(--cyan);
  background: var(--cyan-glow);
}
.btn-large { padding: 1.1rem 2.5rem; font-size: 1rem; }

/* ---------- HEADER / NAV ---------- */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 1.25rem 0;
  transition: all var(--transition);
  background: transparent;
}
.header.scrolled {
  background: rgba(11, 17, 20, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-md);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
}
.logo img { height: 40px; width: auto; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.nav-links a {
  color: var(--light-gray);
  font-size: 0.92rem;
  font-weight: 500;
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  position: relative;
}
.nav-links a:hover { color: var(--cyan); }
.nav-links a.active { color: var(--cyan); }
.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0.9rem; right: 0.9rem;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--green));
  border-radius: 2px;
}
.nav-cta { margin-left: 0.5rem; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 0.5rem;
  z-index: 1001;
}
.hamburger span {
  width: 26px; height: 3px;
  background: var(--white);
  border-radius: 3px;
  transition: all var(--transition);
}
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(6px, 6px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(6px, -6px); }

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 80px;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: brightness(0.45) contrast(1.1);
  animation: heroZoom 20s ease-in-out infinite alternate;
}
@keyframes heroZoom {
  from { transform: scale(1); }
  to { transform: scale(1.12); }
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(11,17,20,0.7) 0%, rgba(11,17,20,0.85) 100%),
    radial-gradient(circle at 70% 30%, rgba(0,217,255,0.08) 0%, transparent 50%);
  z-index: 1;
}
/* Technical grid overlay */
.hero-grid {
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image:
    linear-gradient(rgba(0,217,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,217,255,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
  width: 100%;
}
.hero h1 {
  font-size: clamp(2.5rem, 6vw, 5rem);
  line-height: 1.05;
  margin-bottom: 1.5rem;
  font-weight: 800;
}
.hero h1 .accent-cyan { color: var(--cyan); }
.hero h1 .accent-green { color: var(--green); }
.hero-text {
  font-size: 1.2rem;
  color: var(--light-gray);
  max-width: 580px;
  margin-bottom: 2.5rem;
}
.hero-buttons { display: flex; gap: 1rem; flex-wrap: wrap; }

/* Engineering data lines */
.hero-data {
  position: absolute;
  bottom: 2rem;
  right: 2rem;
  z-index: 2;
  font-size: 0.75rem;
  color: var(--cyan);
  font-family: 'Courier New', monospace;
  opacity: 0.6;
  text-align: right;
  line-height: 1.8;
}
.hero-data span { color: var(--green); }

/* ---------- STATS / COUNTERS ---------- */
.stats {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 4rem 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}
.stat-item {
  position: relative;
  padding: 1rem;
}
.stat-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: -1rem; top: 20%; bottom: 20%;
  width: 1px;
  background: var(--border);
}
.stat-number {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 800;
  background: linear-gradient(135deg, var(--cyan), var(--green));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
  margin-bottom: 0.5rem;
}
.stat-label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--gray);
}

/* ---------- CARDS ---------- */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 3px;
  background: linear-gradient(90deg, var(--cyan), var(--green));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}
.card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.card:hover::before { transform: scaleX(1); }
.card-icon {
  width: 56px; height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--cyan-glow);
  border-radius: var(--radius-md);
  margin-bottom: 1.25rem;
}
.card-icon svg { width: 30px; height: 30px; }
.card h3 { margin-bottom: 0.75rem; }
.card p { font-size: 0.95rem; color: var(--gray); }
.card-link {
  margin-top: 1rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--cyan);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: gap var(--transition);
}
.card-link:hover { gap: 0.7rem; color: var(--green); }

/* ---------- IMAGE CARDS (Tooling/Dies) ---------- */
.image-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--bg-card);
  border: 1px solid var(--border);
}
.image-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--transition);
}
.image-card:hover img { transform: scale(1.08); }
.image-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(11,17,20,0.95) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.75rem;
}
.image-card-overlay h3 { margin-bottom: 0.5rem; }
.image-card-overlay p { font-size: 0.9rem; color: var(--gray); }
.image-card-badge {
  position: absolute;
  top: 1rem; left: 1rem;
  background: rgba(0,217,255,0.15);
  color: var(--cyan);
  padding: 0.35rem 0.8rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  backdrop-filter: blur(8px);
}

/* ---------- TIMELINE ---------- */
.timeline {
  position: relative;
  padding: 2rem 0;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 50%; top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--cyan), var(--green));
  transform: translateX(-50%);
}
.timeline-item {
  position: relative;
  width: 50%;
  padding: 1.5rem 2.5rem;
  margin-bottom: 1rem;
}
.timeline-item:nth-child(odd) { left: 0; text-align: right; }
.timeline-item:nth-child(even) { left: 50%; }
.timeline-dot {
  position: absolute;
  top: 2rem;
  width: 16px; height: 16px;
  background: var(--bg-primary);
  border: 3px solid var(--cyan);
  border-radius: 50%;
  z-index: 2;
}
.timeline-item:nth-child(odd) .timeline-dot { right: -8px; }
.timeline-item:nth-child(even) .timeline-dot { left: -8px; }
.timeline-year {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--cyan);
  margin-bottom: 0.25rem;
}
.timeline-content {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  transition: all var(--transition);
}
.timeline-content:hover {
  border-color: var(--border-hover);
  transform: scale(1.02);
}
.timeline-content h4 { margin-bottom: 0.5rem; }
.timeline-content p { font-size: 0.9rem; color: var(--gray); }

/* Horizontal process timeline */
.process-timeline {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 0.5rem;
  counter-reset: step;
}
.process-step {
  text-align: center;
  position: relative;
  padding: 1rem 0.5rem;
}
.process-step::before {
  counter-increment: step;
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px; height: 48px;
  margin: 0 auto 1rem;
  background: var(--bg-card);
  border: 2px solid var(--cyan);
  border-radius: 50%;
  font-weight: 800;
  color: var(--cyan);
  font-size: 1.2rem;
  transition: all var(--transition);
  position: relative;
  z-index: 2;
}
.process-step:hover::before {
  background: var(--cyan);
  color: var(--bg-primary);
  transform: scale(1.1);
  box-shadow: 0 0 25px rgba(0,217,255,0.4);
}
.process-step::after {
  content: '';
  position: absolute;
  top: 24px;
  left: 50%;
  width: 100%;
  height: 2px;
  background: var(--border);
  z-index: 1;
}
.process-step:last-child::after { display: none; }
.process-step h4 { font-size: 0.95rem; margin-bottom: 0.3rem; }
.process-step p { font-size: 0.8rem; color: var(--gray); }

/* ---------- FEATURE BLOCKS ---------- */
.feature-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.feature-block.reverse { direction: rtl; }
.feature-block.reverse > * { direction: ltr; }
.feature-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  border: 1px solid var(--border);
  position: relative;
}
.feature-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--transition);
}
.feature-image:hover img { transform: scale(1.05); }
.feature-content .eyebrow { margin-bottom: 1rem; }
.feature-content h2 { margin-bottom: 1.25rem; }
.feature-content p { margin-bottom: 1rem; color: var(--light-gray); }
.feature-list {
  margin-top: 1.5rem;
}
.feature-list li {
  padding: 0.6rem 0 0.6rem 2rem;
  position: relative;
  color: var(--light-gray);
  font-size: 0.95rem;
}
.feature-list li::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  width: 8px; height: 8px;
  background: var(--green);
  border-radius: 2px;
  transform: translateY(-50%) rotate(45deg);
}

/* ---------- INDUSTRY CARDS ---------- */
.industry-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  text-align: center;
  transition: all var(--transition);
}
.industry-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}
.industry-icon {
  width: 72px; height: 72px;
  margin: 0 auto 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--cyan-glow), var(--green-glow));
  border-radius: 50%;
  border: 1px solid var(--border);
}
.industry-icon svg { width: 36px; height: 36px; }
.industry-card h4 { margin-bottom: 0.5rem; }
.industry-card p { font-size: 0.88rem; color: var(--gray); }

/* ---------- CTA SECTION ---------- */
.cta-section {
  background: linear-gradient(135deg, var(--bg-secondary), var(--bg-card));
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  width: 300px; height: 300px;
  background: radial-gradient(circle, var(--cyan-glow), transparent 70%);
  transform: translate(-50%, -50%);
}
.cta-section .container { position: relative; z-index: 1; }
.cta-section h2 { margin-bottom: 1rem; }
.cta-section p { font-size: 1.1rem; color: var(--light-gray); margin-bottom: 2rem; }

/* ---------- CONTACT FORM ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 4rem;
}
.contact-info h3 { margin-bottom: 1.5rem; }
.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.contact-detail-icon {
  width: 44px; height: 44px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--cyan-glow);
  border-radius: var(--radius-sm);
}
.contact-detail-icon svg { width: 22px; height: 22px; }
.contact-detail h4 { font-size: 0.95rem; margin-bottom: 0.25rem; }
.contact-detail p { font-size: 0.9rem; color: var(--gray); }

.form-group { margin-bottom: 1.25rem; }
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--light-gray);
  margin-bottom: 0.5rem;
  letter-spacing: 0.03em;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--white);
  font-family: inherit;
  font-size: 0.95rem;
  transition: all var(--transition);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px var(--cyan-glow);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-group select { cursor: pointer; }
.form-group select option { background: var(--bg-card); }
.form-error {
  display: none;
  font-size: 0.8rem;
  color: var(--error);
  margin-top: 0.35rem;
}
.form-group.error input,
.form-group.error select,
.form-group.error textarea {
  border-color: var(--error);
}
.form-group.error .form-error { display: block; }

.form-success {
  display: none;
  background: var(--green-glow);
  border: 1px solid var(--green);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin-top: 1.5rem;
  text-align: center;
}
.form-success.show { display: block; animation: fadeInUp 0.5s; }
.form-success h4 { color: var(--green); margin-bottom: 0.5rem; }
.form-success p { font-size: 0.9rem; color: var(--light-gray); }

/* ---------- FOOTER ---------- */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 5rem 0 2rem;
}
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3.5rem;
}
.footer-brand img { height: 50px; margin-bottom: 1.5rem; }
.footer-tagline {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}
.footer-desc { font-size: 0.92rem; color: var(--gray); max-width: 380px; }
.footer-col h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--cyan);
  margin-bottom: 1.25rem;
}
.footer-col ul li { margin-bottom: 0.65rem; }
.footer-col ul li a {
  color: var(--gray);
  font-size: 0.92rem;
  transition: all var(--transition);
}
.footer-col ul li a:hover { color: var(--cyan); padding-left: 4px; }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-bottom p { font-size: 0.85rem; color: var(--gray); }
.footer-social { display: flex; gap: 0.75rem; }
.footer-social a {
  width: 38px; height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--gray);
  transition: all var(--transition);
}
.footer-social a:hover {
  color: var(--cyan);
  border-color: var(--cyan);
  background: var(--cyan-glow);
  transform: translateY(-3px);
}
.footer-social svg { width: 18px; height: 18px; }

/* ---------- PAGE BANNER ---------- */
.page-banner {
  position: relative;
  min-height: 50vh;
  display: flex;
  align-items: center;
  padding-top: 80px;
  overflow: hidden;
}
.page-banner-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.page-banner-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: brightness(0.4) contrast(1.1);
}
.page-banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11,17,20,0.8), rgba(11,17,20,0.9));
  z-index: 1;
}
.page-banner-content {
  position: relative;
  z-index: 2;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
  width: 100%;
}
.page-banner h1 { margin-bottom: 1rem; }
.page-banner p { font-size: 1.15rem; max-width: 600px; color: var(--light-gray); }
.breadcrumb {
  display: flex;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--gray);
  margin-bottom: 1.5rem;
}
.breadcrumb a { color: var(--cyan); }
.breadcrumb span { color: var(--gray); }

/* ---------- SCROLL REVEAL ---------- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.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; }

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

/* ---------- QUALITY BADGES ---------- */
.quality-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.quality-item {
  text-align: center;
  padding: 2rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: all var(--transition);
}
.quality-item:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.quality-item-icon {
  width: 64px; height: 64px;
  margin: 0 auto 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--green-glow);
  border-radius: 50%;
  border: 1px solid var(--green);
}
.quality-item-icon svg { width: 32px; height: 32px; }
.quality-item h4 { margin-bottom: 0.5rem; }
.quality-item p { font-size: 0.88rem; color: var(--gray); }

/* ---------- ABOUT SECTIONS ---------- */
.about-block {
  margin-bottom: 4rem;
}
.about-block h2 { margin-bottom: 1.25rem; }
.about-block p { margin-bottom: 1rem; font-size: 1.02rem; }

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}
.value-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  transition: all var(--transition);
}
.value-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
}
.value-card h4 { color: var(--cyan); margin-bottom: 0.5rem; }
.value-card p { font-size: 0.9rem; color: var(--gray); }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .footer-brand { grid-column: 1 / -1; }
  .process-timeline { grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
  .process-step::after { display: none; }
}

@media (max-width: 768px) {
  section { padding: 4rem 0; }
  .nav-links {
    position: fixed;
    top: 0; right: -100%;
    width: 75%;
    max-width: 320px;
    height: 100vh;
    flex-direction: column;
    align-items: flex-start;
    background: var(--bg-secondary);
    padding: 5rem 1.5rem 2rem;
    gap: 0.5rem;
    transition: right var(--transition);
    border-left: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
  }
  .nav-links.open { right: 0; }
  .nav-links a { width: 100%; padding: 0.75rem 1rem; }
  .nav-links a.active::after { display: none; }
  .nav-cta { margin: 1rem 0 0; width: 100%; }
  .hamburger { display: flex; }

  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 2.5rem 1rem; }
  .stat-item:nth-child(2)::after { display: none; }
  .stat-item::after { display: none; }

  .feature-block { grid-template-columns: 1fr; gap: 2rem; }
  .feature-block.reverse { direction: ltr; }

  .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .form-row { grid-template-columns: 1fr; }

  .footer-top { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; text-align: center; }

  .timeline::before { left: 20px; }
  .timeline-item { width: 100%; padding-left: 3rem; padding-right: 0; text-align: left !important; left: 0 !important; }
  .timeline-item:nth-child(odd) { text-align: left; }
  .timeline-item:nth-child(odd) .timeline-dot,
  .timeline-item:nth-child(even) .timeline-dot { left: 12px; right: auto; }

  .process-timeline { grid-template-columns: repeat(2, 1fr); }
  .quality-grid, .values-grid { grid-template-columns: 1fr; }
  .hero-data { display: none; }

  .hero h1 { font-size: 2.2rem; }
  .hero-text { font-size: 1rem; }
  .hero-buttons { flex-direction: column; }
  .hero-buttons .btn { width: 100%; justify-content: center; }
}

@media (max-width: 480px) {
  .container { padding: 0 1rem; }
  section { padding: 3rem 0; }
  .stats-grid { grid-template-columns: 1fr; }
  .process-timeline { grid-template-columns: 1fr; }
}

/* ---------- REDUCED MOTION ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .hero-bg img { animation: none; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- SELECTION ---------- */
::selection { background: var(--cyan); color: var(--bg-primary); }

/* ---------- SCROLLBAR ---------- */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--bg-elevated); border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: var(--cyan-dark); }


.logo {
    display: flex;
    align-items: center;
    position: relative;
    width: 180px;
    height: 100%;
    flex-shrink: 0;
}

.logo img {
    width: 220px;
    max-width: none;
    height: auto;
    display: block;
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
}

/* Tablets */
@media (max-width: 1024px) {
    .logo {
        width: 160px;
    }

    .logo img {
        width: 190px;
        left: 0;
    }
}

/* Small tablets / phones */
@media (max-width: 768px) {
    .logo {
        width: 140px;
    }

    .logo img {
        width: 160px;
        left: 0;
    }
}

/* Small phones */
@media (max-width: 480px) {
    .logo {
        width: 120px;
    }

    .logo img {
        width: 135px;
        left: 0;
    }
}

/* Very small phones */
@media (max-width: 360px) {
    .logo {
        width: 105px;
    }

    .logo img {
        width: 115px;
        left: 0;
    }
}

.footer-logo {
    display: inline-block;
    max-width: 100%;
}

.footer-logo img {
    width: 300px;
    height: auto;
    max-width: 100%;
    display: block;
}

/* Tablet */
@media (max-width: 1024px) {
    .footer-logo img {
        width: 250px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .footer-logo img {
        width: 210px;
    }
}

/* Small mobile */
@media (max-width: 480px) {
    .footer-logo img {
        width: 180px;
    }
}