/* =====================================================
   ICSS — Integrated Control System and Supply Corp.
   Stylesheet: styles.css
   Theme: Industrial Orange / High-Voltage Red
   ===================================================== */

/* ===== CSS VARIABLES ===== */
:root {
  /* Brand Colors */
  --cyan: #F97316;           /* primary accent — industrial orange */
  --cyan-dim: #C2410C;       /* darker orange for depth */
  --amber: #EF4444;          /* secondary accent — high-voltage red */

  /* Backgrounds — warm dark, not cold blue-black */
  --bg: #0C0A08;             /* near-black with warm undertone */
  --bg-panel: #121009;       /* section panels */
  --bg-card: #1A1612;        /* card surfaces */
  --bg-elevated: #221E18;    /* elevated surfaces / hover states */

  /* Borders */
  --border: rgba(255,255,255,0.07);
  --border-accent: rgba(249,115,22,0.35);  /* orange-tinted border glow */

  /* Text */
  --text: #F0EDE8;           /* warm white */
  --text-muted: #9A8F84;     /* warm grey */
  --text-dim: #5A5048;       /* dim warm grey */
}

/* ===== RESET & BASE ===== */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  overflow-x: hidden;
}

/* ===== TYPOGRAPHY ===== */
.font-display { font-family: 'Syne', sans-serif; }
.font-mono    { font-family: 'JetBrains Mono', monospace; }

/* ===== BACKGROUND GRID ===== */
.bg-grid {
  background-image:
    linear-gradient(rgba(249,115,22,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(249,115,22,0.035) 1px, transparent 1px);
  background-size: 60px 60px;
}

/* ===== NOISE TEXTURE ===== */
.noise::before {
  content: '';
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  opacity: 0.3;
  z-index: 1;
}

/* ===== GLASS CARD ===== */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
}
.card:hover {
  border-color: var(--border-accent);
  box-shadow: 0 0 30px rgba(249,115,22,0.08), inset 0 0 30px rgba(249,115,22,0.025);
  transform: translateY(-2px);
}

/* ===== GRADIENT ACCENT LINE ===== */
.accent-line {
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), transparent);
  width: 60px;
  margin-bottom: 1.25rem;
}

/* ===== BUTTONS ===== */
.btn-primary {
  background: var(--cyan);
  color: #0C0A08;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.875rem 2rem 1rem;
  border: none;
  cursor: pointer;
  transition: box-shadow 0.3s, background 0.3s, transform 0.15s;
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
  line-height: 1.4;
}
.btn-primary:hover {
  background: #fb923c;
  box-shadow: 0 0 30px rgba(249,115,22,0.55), 0 0 60px rgba(249,115,22,0.2);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.875rem 2rem 1rem;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all 0.3s;
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
  line-height: 1.4;
}
.btn-outline:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  box-shadow: 0 0 20px rgba(249,115,22,0.15);
}

/* ===== NAVIGATION ===== */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 300;
  background: rgba(12,10,8,0.93);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: all 0.3s;
}
.nav-inner {
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-family: 'Syne', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.03em;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.nav-logo span { color: var(--cyan); }
.nav-logo-img {
  height: 36px;
  width: auto;
  object-fit: contain;
}
.nav-logo-text { 
  display: inline; 
  color: #F0EDE8 !important;
}

.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-links a {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
  white-space: nowrap;
}
.nav-links a:hover,
.nav-links a.active { color: var(--cyan); }
.nav-links a.active { position: relative; }
.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0; right: 0;
  height: 1px;
  background: var(--cyan);
}

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}
.mobile-menu-btn span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--text);
  transition: all 0.3s;
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .mobile-menu-btn { display: flex; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 68px; left: 0; right: 0;
    background: rgba(12,10,8,0.98);
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--border);
    gap: 1.5rem;
    z-index: 299;
  }
  .hidden-mobile { display: none !important; }
}

/* ===== SECTION LAYOUT ===== */
.section-container {
  max-width: 1360px;
  margin: 0 auto;
  padding: 6rem 2rem;
}
.section-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.section-label::before {
  content: '';
  display: inline-block;
  width: 20px;
  height: 1px;
  background: var(--cyan);
}
.section-title {
  font-family: 'Syne', sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--text);
  line-height: 1.25;
  letter-spacing: -0.02em;
}

/* ===== HERO ===== */
#home {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.hero-img {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, #1A0E06 0%, #0C0A08 55%, #0E0A06 100%);
  z-index: 0;
}
.hero-img::after {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 60% at 75% 50%, rgba(249,115,22,0.1) 0%, transparent 70%),
    radial-gradient(ellipse 40% 50% at 15% 70%, rgba(239,68,68,0.07) 0%, transparent 60%),
    radial-gradient(ellipse 30% 30% at 90% 10%, rgba(194,65,12,0.06) 0%, transparent 50%);
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, transparent 40%, var(--bg) 100%);
  z-index: 1;
  pointer-events: none;
}
.hero-content {
  position: relative; z-index: 2;
  max-width: 1360px;
  margin: 0 auto;
  padding: 8rem 2rem 6rem;
  width: 100%;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.875rem;
  background: rgba(249,115,22,0.1);
  border: 1px solid rgba(249,115,22,0.25);
  margin-bottom: 2rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--cyan);
}
.hero-badge .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(249,115,22,0.5); }
  50%       { opacity: 0.8; box-shadow: 0 0 0 7px rgba(249,115,22,0); }
}

.hero-h1 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(2.5rem, 6vw, 5.5rem);
  font-weight: 800;
  color: var(--text);
  line-height: 1.12;
  letter-spacing: -0.035em;
  max-width: 820px;
  margin-bottom: 1.5rem;
  padding-bottom: 0.1em;
}
.hero-h1 em {
  font-style: normal;
  color: var(--cyan);
}
.hero-sub {
  font-size: 1.125rem;
  font-weight: 400;
  font-family: 'DM Sans', sans-serif;
  margin-top: 0;
  color: var(--text-muted);
  max-width: 540px;
  line-height: 1.7;
  margin-bottom: 3rem;
}
.hero-btns { display: flex; gap: 1rem; flex-wrap: wrap; }

/* Animated scan line */
.scan-line {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  animation: scanDown 6s linear infinite;
  opacity: 0.35;
  z-index: 2;
  pointer-events: none;
}
@keyframes scanDown {
  0%   { top: 0%; }
  100% { top: 100%; }
}

/* ===== STATS BAR ===== */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  margin-top: 5rem;
}
.stat-item {
  background: var(--bg-panel);
  padding: 2rem 1.5rem;
  text-align: center;
}
.stat-num {
  font-family: 'Syne', sans-serif;
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--cyan);
  letter-spacing: -0.03em;
  line-height: 1.2;
}
.stat-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-top: 0.5rem;
}

/* ===== SERVICE CARDS ===== */
.service-icon {
  width: 48px; height: 48px;
  background: rgba(249,115,22,0.08);
  border: 1px solid rgba(249,115,22,0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  transition: all 0.3s;
}
.card:hover .service-icon {
  background: rgba(249,115,22,0.14);
  border-color: var(--cyan);
  box-shadow: 0 0 20px rgba(249,115,22,0.2);
}

/* ===== TAB BUTTONS ===== */
.tab-btn {
  padding: 0.6rem 1.5rem;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}
.tab-btn.active,
.tab-btn:hover {
  background: rgba(249,115,22,0.1);
  border-color: var(--cyan);
  color: var(--cyan);
}
.tab-content { display: none; }
.tab-content.active { display: block; }

/* ===== PROJECT CARDS ===== */
.project-card {
  position: relative;
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: all 0.4s;
}
.project-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, #FCD34D, var(--cyan), var(--amber));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s;
}
.project-card:hover::before { transform: scaleX(1); }
.project-card:hover {
  border-color: var(--border-accent);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 40px rgba(249,115,22,0.07);
  transform: translateY(-4px);
}

.project-scope-tag {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  background: rgba(249,115,22,0.1);
  border: 1px solid rgba(249,115,22,0.22);
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-right: 0.375rem;
  margin-bottom: 0.375rem;
}
.project-scope-tag.amber {
  background: rgba(239,68,68,0.1);
  border-color: rgba(239,68,68,0.22);
  color: var(--amber);
}

/* ===== PROJECT LIST ITEMS (category list with hover image) ===== */
.project-list-item {
  background: var(--bg-card);
  padding: 1.25rem 1.5rem;
  cursor: default;
  transition: background 0.2s, border-color 0.2s, padding-left 0.2s;
  border: 1px solid transparent;
  position: relative;
}
.project-list-item:hover {
  background: var(--bg-elevated);
  border-color: var(--border-accent);
  padding-left: 2rem;
}

/* ===== PROJECT IMAGE OVERLAY (center of viewport on hover) ===== */
.proj-img-overlay {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 200;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s ease;
  width: 480px;
  max-width: 90vw;
}
.proj-img-overlay.visible {
  opacity: 1;
}
/* Close button anchor */
.proj-img-overlay .feat-proj-close-btn {
  position: absolute;
}
.proj-img-overlay img {
  width: 100%;
  height: 450px;
  object-fit: cover;
  border: 1px solid var(--border-accent);
  box-shadow:
    0 0 0 1px rgba(249,115,22,0.15),
    0 30px 80px rgba(0,0,0,0.8),
    0 0 60px rgba(249,115,22,0.12);
  display: block;
}

/* ===== FEATURED PROJECT CLOSE BUTTON (hidden on desktop) ===== */
.feat-proj-close-btn {
  display: none;
}

/* ===== FEATURED PROJECT BACKDROP (hidden everywhere by default) ===== */
.feat-proj-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  z-index: 199;
  cursor: pointer;
}
.feat-proj-backdrop.active {
  display: block;
}

/* ===== PRODUCT CLOSE BUTTON (hidden on desktop) ===== */
.prod-close-btn {
  display: none;
}

/* ===== PRODUCT BACKDROP (hidden everywhere by default) ===== */
.product-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  z-index: 199;
  cursor: pointer;
}
.product-backdrop.active {
  display: block;
}

/* Close button anchor */
.product-overlay .prod-close-btn {
  position: absolute;
}

/* ===== CEO CARD (About Us page) ===== */
.ceo-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.ceo-card::after {
  content: '';
  position: absolute;
  right: -80px; top: -80px;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(249,115,22,0.07), transparent);
  pointer-events: none;
}

.ceo-card-full {
  background: var(--bg-card);
  border: 1px solid var(--border);
  overflow: hidden;
  position: relative;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.ceo-card-full:hover {
  border-color: var(--border-accent);
  box-shadow: 0 0 40px rgba(249,115,22,0.08);
}
.ceo-card-full::after {
  content: '';
  position: absolute;
  right: -100px; top: -100px;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(249,115,22,0.05), transparent);
  pointer-events: none;
}

.ceo-photo-panel {
  position: relative;
  background: var(--bg-elevated);
  overflow: hidden;
  min-height: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-right: 1px solid var(--border);
}
.ceo-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  position: absolute;
  inset: 0;
  filter: grayscale(10%);
  transition: filter 0.4s;
}
.ceo-card-full:hover .ceo-photo {
  filter: grayscale(0%);
}
.ceo-photo-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-height: 360px;
  background: linear-gradient(135deg, rgba(249,115,22,0.06), transparent);
}
.ceo-photo-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 1rem;
  background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
  text-align: center;
}

/* ===== HOME IMAGE SLIDER ===== */
.home-slider {
  position: relative;
  overflow: hidden;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  aspect-ratio: 16/11;
  transition: border-color 0.3s;
}
.home-slider:hover {
  border-color: var(--border-accent);
}
.slider-track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.6s cubic-bezier(0.77,0,0.18,1);
}
.slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}
.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(20%) sepia(5%);
  transition: transform 0.6s ease, filter 0.4s;
}
.home-slider:hover .slide img {
  filter: grayscale(0%) sepia(0%);
}
.slide-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 2rem 1.25rem 0.875rem;
  background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* Slider Arrows */
.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(12,10,8,0.75);
  border: 1px solid var(--border);
  color: var(--text);
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: all 0.25s;
  z-index: 10;
  backdrop-filter: blur(8px);
}
.slider-btn:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  background: rgba(249,115,22,0.12);
}
.slider-btn-prev { left: 0.75rem; }
.slider-btn-next { right: 0.75rem; }

/* Slider Dots */
.slider-dots {
  position: absolute;
  bottom: 0.875rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.4rem;
  z-index: 10;
}
.slider-dot {
  width: 6px; height: 6px;
  background: rgba(255,255,255,0.3);
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.25s;
}
.slider-dot.active {
  background: var(--cyan);
  width: 18px;
  border-radius: 3px;
}

/* ===== PORTFOLIO CATEGORIES ===== */
.portfolio-cat {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all 0.25s;
  text-decoration: none;
  color: inherit;
}
.portfolio-cat:hover {
  border-color: var(--border-accent);
  background: var(--bg-elevated);
  padding-left: 2rem;
}
.portfolio-cat .cat-icon {
  width: 36px; height: 36px;
  background: rgba(249,115,22,0.08);
  border: 1px solid rgba(249,115,22,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.portfolio-cat .cat-arrow {
  margin-left: auto;
  color: var(--text-dim);
  transition: color 0.2s, transform 0.2s;
}
.portfolio-cat:hover .cat-arrow {
  color: var(--cyan);
  transform: translateX(4px);
}

/* ===== CTA BANNER ===== */
.cta-banner {
  background: linear-gradient(135deg, rgba(249,115,22,0.09), rgba(239,68,68,0.05));
  border: 1px solid rgba(249,115,22,0.2);
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute; inset: 0;
  background: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 30px,
    rgba(255,255,255,0.008) 30px,
    rgba(255,255,255,0.008) 31px
  );
  pointer-events: none;
}

/* ===== FORM FIELDS ===== */
.form-field {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.875rem 1rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9375rem;
  width: 100%;
  transition: border-color 0.2s;
  outline: none;
}
.form-field:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(249,115,22,0.1);
}
.form-field::placeholder { color: var(--text-dim); }

label {
  display: block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

/* ===== FOOTER ===== */
footer {
  background: var(--bg-panel);
  border-top: 1px solid var(--border);
}
.footer-inner {
  max-width: 1360px;
  margin: 0 auto;
  padding: 4rem 2rem 2rem;
}

/* ===== SCROLL REVEAL ANIMATION ===== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.16,1,0.3,1), transform 0.7s cubic-bezier(0.16,1,0.3,1);
}
.reveal.active {
  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; }

/* ===== PAGE SECTIONS (SPA routing) ===== */
.page-section { display: none; }
.page-section.active { display: block; }

/* ===== SCROLL PROGRESS BAR ===== */
.scroll-progress {
  position: fixed;
  top: 68px; left: 0;
  height: 2px;
  background: linear-gradient(90deg, #FCD34D, var(--cyan), var(--amber));
  z-index: 101;
  transition: width 0.1s;
}

/* ===== PRODUCT CARDS ===== */
.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 1.25rem;
  transition: all 0.3s;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.product-card:hover {
  border-color: var(--border-accent);
  background: var(--bg-elevated);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.4), 0 0 20px rgba(249,115,22,0.06);
}

/* Product image container */
.product-img-wrap {
  width: 100%;
  aspect-ratio: 4/3;
  background: var(--bg-elevated);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-bottom: 0.25rem;
  position: relative;
}
.product-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(20%) sepia(10%);
  transition: filter 0.4s, transform 0.4s;
}
.product-card:hover .product-img {
  filter: grayscale(0%) sepia(0%);
  transform: scale(1.04);
}
.product-icon {
  width: 40px; height: 40px;
  background: rgba(249,115,22,0.08);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 0.75rem;
  font-size: 20px;
}

/* ===== PRODUCT DESCRIPTION OVERLAY (center of viewport) ===== */
.product-overlay {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 200;
  pointer-events: none;
  width: 420px;
  max-width: 90vw;
}
.product-overlay-inner {
  background: var(--bg-elevated);
  border: 1px solid var(--border-accent);
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(249,115,22,0.15), 0 30px 80px rgba(0,0,0,0.85), 0 0 60px rgba(249,115,22,0.1);
}
.product-overlay-inner img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  display: block;
  filter: grayscale(10%);
}
.product-overlay-desc {
  padding: 1.25rem 1.5rem;
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.7;
  font-family: 'DM Sans', sans-serif;
  border-top: 1px solid var(--border);
}

/* ===== GALLERY ===== */
.gallery-item {
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border);
  aspect-ratio: 4/3;
  position: relative;
}
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(60%) sepia(20%);
  transition: transform 0.5s, filter 0.5s;
}
.gallery-item:hover img {
  transform: scale(1.06);
  filter: grayscale(0%) sepia(0%);
}
.gallery-item .gallery-label {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.85), transparent);
  padding: 1.5rem 1rem 0.75rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  opacity: 0;
  transition: opacity 0.3s;
}
.gallery-item:hover .gallery-label { opacity: 1; }

/* =====================================================
   PROJECT CATEGORY CARDS (product-style grid + overlay)
   ===================================================== */

.proj-cat-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.proj-cat-icon {
  width: 36px; height: 36px;
  background: rgba(249,115,22,0.08);
  border: 1px solid rgba(249,115,22,0.18);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.proj-cat-title {
  font-family: 'Syne', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
}
.proj-cat-count {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-top: 0.2rem;
}

/* 4-column card grid */
.proj-card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
}

/* Individual project card */
.proj-cat-card {
  background: var(--bg-card);
  padding: 1.5rem 1.25rem;
  cursor: pointer;
  transition: background 0.25s, border-color 0.25s, padding-left 0.25s;
  border: 1px solid transparent;
  position: relative;
  min-height: 90px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.proj-cat-card:hover {
  background: var(--bg-elevated);
  border-color: var(--border-accent);
  padding-left: 1.75rem;
  z-index: 1;
}
.proj-cat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 2px; height: 0;
  background: var(--cyan);
  transition: height 0.3s ease;
}
.proj-cat-card:hover::before { height: 100%; }

.proj-cat-card-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.15em;
  color: var(--text-dim);
  margin-bottom: 0.4rem;
  transition: color 0.2s;
}
.proj-cat-card:hover .proj-cat-card-num { color: var(--cyan); }

.proj-cat-card-name {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.35;
  margin-bottom: 0.3rem;
}
.proj-cat-card-loc {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.1em;
  color: var(--text-dim);
}

/* Placeholder style — dashed, dimmer */
.proj-cat-card--placeholder {
  background: var(--bg);
  border: 1px dashed rgba(255,255,255,0.06) !important;
  opacity: 0.55;
}
.proj-cat-card--placeholder .proj-cat-card-name {
  color: var(--text-dim);
  font-style: italic;
}
.proj-cat-card--placeholder:hover { opacity: 0.8; }

/* ===== PROJECT CATEGORY OVERLAY ===== */
.proj-cat-overlay {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -52%) scale(0.97);
  z-index: 200;
  pointer-events: none;
  width: 440px;
  max-width: 90vw;
  opacity: 0;
  transition: opacity 0.22s ease, transform 0.22s ease;
}
.proj-cat-overlay.visible {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}
/* Close button anchor requires overlay to establish a stacking context */
.proj-cat-overlay .proj-cat-close-btn {
  position: absolute;
}
.proj-cat-overlay-inner {
  background: var(--bg-elevated);
  border: 1px solid var(--border-accent);
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(249,115,22,0.12),
    0 30px 80px rgba(0,0,0,0.88),
    0 0 60px rgba(249,115,22,0.1);
}
.proj-cat-overlay-img-wrap {
  width: 100%;
  height: 450px;
  background: var(--bg-card);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.proj-cat-overlay-img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  filter: grayscale(10%);
}
.proj-cat-overlay-placeholder {
  position: absolute; inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
}
.proj-cat-overlay-body {
  padding: 1.25rem 1.5rem 1.5rem;
  border-top: 1px solid var(--border);
}
.proj-cat-overlay-name {
  font-family: 'Syne', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.2rem;
}
.proj-cat-overlay-location {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 0.75rem;
}
.proj-cat-overlay-desc {
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 0.875rem;
}
.proj-cat-overlay-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
}
.proj-cat-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.2rem 0.55rem;
  background: rgba(249,115,22,0.1);
  border: 1px solid rgba(249,115,22,0.2);
  color: var(--cyan);
}

/* ===== PROJECT CATEGORY CLOSE BUTTON (hidden on desktop) ===== */
.proj-cat-close-btn {
  display: none;
}

/* ===== PROJECT CATEGORY BACKDROP (hidden everywhere by default) ===== */
.proj-cat-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  z-index: 199;
  cursor: pointer;
}
.proj-cat-backdrop.active {
  display: block;
}

/* Responsive: project card grid */
@media (max-width: 1024px) {
  .proj-card-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .proj-card-grid { grid-template-columns: 1fr 1fr; }
  .proj-cat-overlay { width: 300px; }
  .proj-cat-overlay-img-wrap { height: 320px; }
}
@media (max-width: 420px) {
  .proj-card-grid { grid-template-columns: 1fr; }
}

/* ===== HORIZONTAL DIVIDER ===== */
.h-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}

/* ===== EXPERTISE ITEM LIST ===== */
.expertise-item {
  padding: 0.75rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  font-size: 0.9rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.625rem;
  transition: all 0.2s;
}
.expertise-item::before {
  content: '';
  width: 4px; height: 4px;
  background: var(--cyan);
  flex-shrink: 0;
}
.expertise-item:hover {
  background: var(--bg-elevated);
  color: var(--text);
  border-color: var(--border-accent);
}

/* ===== LARGE STEP NUMBER ===== */
.step-num {
  font-family: 'Syne', sans-serif;
  font-size: 3.5rem;
  font-weight: 800;
  color: rgba(249,115,22,0.1);
  line-height: 1;
  letter-spacing: -0.05em;
  position: absolute;
  top: -0.5rem;
  right: 1rem;
}

/* ===== ABOUT US: Vision/Mission/History grid ===== */
.about-vmh-grid { margin-bottom: 2rem; }

/* =====================================================
   RESPONSIVE — MOBILE FIRST
   Breakpoints: 1024px (wide tablet), 768px (tablet), 480px (phone)
   ===================================================== */

/* ===== WIDE TABLET (769px – 1024px) ===== */
@media (max-width: 1024px) and (min-width: 769px) {
  /* Contact page two-column layout → slightly narrower ratio */
  .contact-grid {
    grid-template-columns: 1fr 1.4fr !important;
    gap: 2rem !important;
  }

  /* Form two-col → one-col at tablet */
  .form-grid {
    grid-template-columns: 1fr 1fr !important;
  }

  /* Card padding reduction */
  .card[style*="padding:2.5rem"] {
    padding: 1.75rem !important;
  }
}

/* ===== TABLET (max 768px) ===== */
@media (max-width: 768px) {

  /* Section spacing */
  .section-container {
    padding: 4rem 1.25rem;
  }

  /* Hero */
  .hero-content {
    padding: 7rem 7rem 4rem;
  }
  .hero-h1 {
    font-size: clamp(2rem, 7vw, 3rem);
  }
  .hero-sub {
    font-size: 1rem;
  }
  .hero-btns {
    flex-direction: column;
  }
  .hero-btns button, .hero-btns a {
    width: 100%;
    text-align: center;
  }
  .stat-grid {
    grid-template-columns: 1fr 1fr;
    margin-top: 3rem;
  }

  /* About section — 2-col → 1-col */
  .about-grid {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }

  /* Home slider full width */
  .home-slider {
    aspect-ratio: 16/10;
  }

  /* Services main grid — 2-col → 1-col */
  .services-main-grid {
    grid-template-columns: 1fr !important;
  }
  .automation-inner-grid {
    grid-template-columns: 1fr !important;
  }

  /* Project cards expanded (1fr 2fr → 1-col) */
  .project-detail-grid {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }

  /* Portfolio categories — 2-col → 1-col */
  .portfolio-grid {
    grid-template-columns: 1fr !important;
  }
  .portfolio-grid a[style*="grid-column"] {
    grid-column: 1 !important;
  }

  /* Gallery — 3-col → 2-col, remove span */
  .gallery-grid {
    grid-template-columns: 1fr 1fr !important;
  }
  .gallery-grid .gallery-item[style*="grid-row"] {
    grid-row: span 1 !important;
  }
  .gallery-item img[style*="height:100%"] {
    height: auto !important;
  }

  /* Footer — 4-col → 2-col */
  .footer-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 2rem !important;
  }

  /* Contact page — 1fr 2fr → 1-col */
  .contact-grid {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }

  /* Form — 2-col → 1-col */
  .form-grid {
    grid-template-columns: 1fr !important;
  }

  /* Tab buttons — allow wrap & smaller */
  .tab-btn {
    padding: 0.5rem 1rem;
    font-size: 10px;
  }

  /* CTA Banner padding */
  .cta-banner {
    padding: 2.5rem 1.5rem !important;
  }

  /* Page hero headers */
  .page-hero-padding {
    padding: 4rem 1.25rem 3rem !important;
  }

  /* CEO card full — stack vertically */
  .ceo-card-full {
    grid-template-columns: 1fr !important;
  }
  .ceo-photo-panel {
    min-height: 260px;
    border-right: none;
    border-bottom: 1px solid var(--border);
  }

  /* About VMH grid — 2-col → 1-col */
  .about-vmh-grid {
    grid-template-columns: 1fr !important;
  }

  /* About history inner grid → 1-col */
  .about-history-grid {
    grid-template-columns: 1fr !important;
  }

  /* Project image overlay — smaller on tablet */
  .proj-img-overlay {
    width: 320px;
    z-index: 200;
  }
  .proj-img-overlay.visible {
    pointer-events: auto;
  }
  .proj-img-overlay img {
    height: 400px;
  }

  /* Featured project close button — visible on mobile/tablet */
  .feat-proj-close-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10;
    width: 36px;
    height: 36px;
    background: rgba(12, 10, 8, 0.85);
    border: 1px solid var(--border-accent);
    color: var(--text);
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    transition: background 0.2s, color 0.2s;
    border-radius: 0;
    padding: 0;
  }
  .feat-proj-close-btn:hover,
  .feat-proj-close-btn:active {
    background: rgba(249, 115, 22, 0.2);
    color: var(--cyan);
  }

  /* Project category overlay — modal mode on tablet/mobile */
  .proj-cat-overlay {
    z-index: 200;
    width: 88vw;
    max-width: 420px;
    max-height: 85vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .proj-cat-overlay.visible {
    pointer-events: auto;
  }

  /* Close button — visible on mobile/tablet */
  .proj-cat-close-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10;
    width: 36px;
    height: 36px;
    background: rgba(12, 10, 8, 0.85);
    border: 1px solid var(--border-accent);
    color: var(--text);
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    transition: background 0.2s, color 0.2s;
    border-radius: 0;
    padding: 0;
  }
  .proj-cat-close-btn:hover,
  .proj-cat-close-btn:active {
    background: rgba(249, 115, 22, 0.2);
    color: var(--cyan);
  }

  /* Product overlay — smaller */
  .product-overlay {
    width: 340px;
    z-index: 200;
  }
  .product-overlay.visible {
    pointer-events: auto;
  }
  .product-overlay-inner img {
    height: 360px;
  }

  /* Product close button — visible on mobile/tablet */
  .prod-close-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10;
    width: 36px;
    height: 36px;
    background: rgba(12, 10, 8, 0.85);
    border: 1px solid var(--border-accent);
    color: var(--text);
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    transition: background 0.2s, color 0.2s;
    border-radius: 0;
    padding: 0;
  }
  .prod-close-btn:hover,
  .prod-close-btn:active {
    background: rgba(249, 115, 22, 0.2);
    color: var(--cyan);
  }

  /* Form card — reduce padding on small screens */
  .card {
    padding: 1.25rem !important;
  }

  /* Form fields — larger tap targets */
  .form-field {
    padding: 0.9375rem 0.875rem;
    font-size: 1rem; /* Prevents iOS zoom on focus */
  }

  /* Submit button — comfortable tap size */
  .btn-primary[style*="width:100%"] {
    padding: 1rem 1.5rem !important;
    font-size: 11px !important;
  }

  /* Prevent horizontal overflow on the contact section */
  #page-contact .section-container {
    padding-left: 1rem;
    padding-right: 1rem;
    overflow-x: hidden;
  }

  /* CEO card photo — mobile */
  .ceo-photo-panel {
    min-height: 320px !important;
    height: 320px !important;
  }
  .ceo-photo {
    object-position: 45% 30% !important;
  }
  .ceo-card-full > div:last-child {
    padding: 2rem 1.5rem !important;
  }
  .ceo-card-full h3 {
    font-size: 2rem !important;
  }
  .ceo-card-full blockquote {
    font-size: 0.9rem !important;
  }
  .ceo-card-full > div:last-child > div:last-child {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.75rem !important;
    overflow-x: auto;
  }
  .ceo-card-full > div:last-child > div:last-child > div {
    flex: 0 0 auto !important;
  }
  .ceo-card-full > div:last-child > div:last-child > div .font-mono:first-child {
    font-size: 0.75rem !important;
  }
  .ceo-card-full > div:last-child > div:last-child > div .font-mono:last-child {
    font-size: 8px !important;
  }

  .map-iframe {
    width: 300% !important;
    height: 356px !important;
    transform: translateX(-23.2%) !important;
  }
}

/* ===== PHONE (max 480px) ===== */
@media (max-width: 480px) {

  /* Nav */
  .nav-inner {
    padding: 0 1rem;
  }
  .nav-logo {
    font-size: 1.25rem;
  }
  .nav-logo-img {
    height: 28px;
  }

  /* Hero */
  .hero-content {
    padding: 6rem 2rem 3rem;
  }
  .hero-h1 {
    font-size: 1.875rem;
    letter-spacing: -0.02em;
  }
  .hero-badge {
    font-size: 9px;
  }
  .stat-grid {
    grid-template-columns: 1fr 1fr;
  }
  .stat-num {
    font-size: 1.50rem;
  }

  /* Section containers */
  .section-container {
    padding: 3rem 1rem !important;
  }
  .section-title {
    font-size: 1.625rem;
  }

  /* Cards full width */
  .card, .project-card, .product-card {
    padding: 1.25rem !important;
  }

  /* Gallery — 3-col → 1-col on very small screens */
  .gallery-grid {
    grid-template-columns: 1fr !important;
  }

  /* Footer — 2-col → 1-col */
  .footer-grid {
    grid-template-columns: 1fr !important;
  }
  .footer-inner {
    padding: 2.5rem 1rem 1.5rem;
  }

  /* Tab buttons wrap nicely */
  .tab-row {
    gap: 0.375rem !important;
  }
  .tab-btn {
    padding: 0.4rem 0.75rem;
    font-size: 9px;
  }

  /* CTA */
  .cta-banner {
    padding: 2rem 1rem !important;
  }

  /* Page hero */
  .page-hero-padding {
    padding: 3rem 1rem 2rem !important;
  }

  /* Products grid — 2-col on phone */
  .products-grid {
    grid-template-columns: 1fr 1fr !important;
  }

  /* Step number — shrink on small cards */
  .step-num {
    font-size: 2.5rem;
  }

  /* Expertise items grid → 1-col */
  .expertise-grid {
    grid-template-columns: 1fr !important;
  }

  /* CEO card photo panel */
  .ceo-photo-panel {
    min-height: 260px !important;
    height: 260px !important;
  }
  .ceo-photo {
    object-position: 45% 15% !important;
  }
  .ceo-card-full > div:last-child {
    padding: 1.5rem 1rem !important;
  }
  .ceo-card-full h3 {
    font-size: 1.6rem !important;
  }
  .ceo-card-full blockquote {
    font-size: 0.85rem !important;
    padding-left: 1rem !important;
  }
  .ceo-card-full > div:last-child > div:last-child {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.75rem !important;
    overflow-x: auto;
  }
  .ceo-card-full > div:last-child > div:last-child > div {
    flex: 0 0 auto !important;
  }
  .ceo-card-full > div:last-child > div:last-child > div .font-mono:first-child {
    font-size: 0.75rem !important;
  }
  .ceo-card-full > div:last-child > div:last-child > div .font-mono:last-child {
    font-size: 8px !important;
  }

  /* Slider arrows smaller */
  .slider-btn {
    width: 32px; height: 32px;
  }

  /* Project image overlay — fit screen */
  .proj-img-overlay {
    width: 260px;
  }
  .proj-img-overlay img {
    height: 350px;
  }

  /* Featured project close button — larger tap target on phone */
  .feat-proj-close-btn {
    width: 40px;
    height: 40px;
    font-size: 24px;
    top: 8px;
    right: 8px;
  }

  /* Project category overlay — tighter on phone */
  .proj-cat-overlay {
    width: 92vw;
    max-width: 360px;
  }
  .proj-cat-overlay-img-wrap {
    height: 390px;
  }

  /* Close button — larger tap target on phone */
  .proj-cat-close-btn {
    width: 40px;
    height: 40px;
    font-size: 24px;
    top: 8px;
    right: 8px;
  }

  /* Product overlay */
  .product-overlay {
    width: 280px;
  }
  .product-overlay-inner img {
    height: 320px;
  }
  .product-overlay-desc {
    font-size: 0.8rem;
    padding: 1rem;
  }

  /* Product close button — larger tap target on phone */
  .prod-close-btn {
    width: 40px;
    height: 40px;
    font-size: 24px;
    top: 8px;
    right: 8px;
  }

  /* Form message text size */
  #formMsg {
    font-size: 0.8125rem;
  }

  /* Label text */
  label {
    font-size: 9px;
  }

  .map-iframe {
    width: 140% !important;
    height: 360px !important;
    transform: translateX(7.5%) !important;
  }
}

/* =====================================================
   FORM — VALIDATION & ERROR STATES
   ===================================================== */
.form-field--error {
  border-color: var(--amber) !important;
  box-shadow: 0 0 0 3px rgba(239,68,68,0.12) !important;
}
.form-field--error:focus {
  border-color: var(--amber) !important;
  box-shadow: 0 0 0 3px rgba(239,68,68,0.18) !important;
}

#formMsg {
  line-height: 1.7;
  padding: 0.75rem 1rem;
  border-radius: 0;
}

/* Loading / disabled state for submit button */
.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

/* =====================================================
   PRODUCT TABS (new tabbed filtering layout)
   ===================================================== */

/* Tab row */
.prod-tab-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0;
}

/* Individual tab button */
.prod-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.375rem 0.875rem;
  background: transparent;
  border: 1px solid transparent;
  border-bottom: none;
  color: var(--text-muted);
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.22s;
  position: relative;
  bottom: -1px;
  white-space: nowrap;
}
.prod-tab-btn:hover {
  color: var(--cyan);
  background: rgba(249,115,22,0.04);
}
.prod-tab-btn.active {
  color: var(--cyan);
  border-color: var(--border);
  border-bottom-color: var(--bg);
  background: var(--bg);
  box-shadow: inset 0 2px 0 var(--cyan);
}

/* Tab content panels */
.prod-tab-content {
  display: none;
  animation: prodTabFade 0.28s ease;
}
.prod-tab-content.active {
  display: block;
}

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

/* New product grid (5 columns) */
.products-grid-new {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  background: var(--border);
  margin-top: 2rem;
}

/* New product card */
.product-card-new {
  background: var(--bg-card);
  border: 1px solid transparent;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: background 0.28s, border-color 0.28s, transform 0.28s, box-shadow 0.28s;
  position: relative;
  overflow: hidden;
}
.product-card-new::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--amber));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s;
}
.product-card-new:hover::after { transform: scaleX(1); }
.product-card-new:hover {
  background: var(--bg-elevated);
  border-color: var(--border-accent);
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.5), 0 0 24px rgba(249,115,22,0.07);
  z-index: 1;
}

/* Product image wrapper */
.product-img-wrap-new {
  width: 100%;
  aspect-ratio: 4/3;
  background: var(--bg-elevated);
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-img-new {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(20%) sepia(10%);
  transition: filter 0.4s, transform 0.4s;
  display: block;
}
.product-card-new:hover .product-img-new {
  filter: grayscale(0%) sepia(0%);
  transform: scale(1.05);
}

/* Image placeholder (shown when img fails) */
.product-img-placeholder {
  display: none;
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(249,115,22,0.06), transparent);
}

/* Product card text body */
.product-card-body {
  padding: 1rem 1.125rem 1.25rem;
  flex: 1;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.product-card-name {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.35;
  transition: color 0.2s;
}
.product-card-new:hover .product-card-name { color: var(--cyan); }
.product-card-desc {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.75rem;
  color: var(--text-dim);
  line-height: 1.6;
}

/* Responsive product tabs */
@media (max-width: 900px) {
  .product-card-peek { display: none !important; }
  .products-grid-flat { grid-template-columns: repeat(2, 1fr) !important; }
  .products-grid-new { grid-template-columns: repeat(2, 1fr) !important; }
  .prod-tab-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    border-bottom: none;
    margin-bottom: 0.5rem;
  }
  .prod-tab-btn {
    white-space: normal;
    text-align: left;
    padding: 0.6rem 0.75rem;
    font-size: 9px;
    border: 1px solid var(--border);
    bottom: 0;
    justify-content: flex-start;
  }
  .prod-tab-btn.active {
    border-color: var(--cyan);
    border-bottom-color: var(--cyan);
  }
}
@media (max-width: 640px) {
  .products-grid-flat { grid-template-columns: repeat(2, 1fr) !important; }
  .products-grid-new { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (max-width: 400px) {
  .products-grid-flat { grid-template-columns: 1fr 1fr !important; }
  .products-grid-new { grid-template-columns: 1fr 1fr !important; }
  .prod-tab-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    border-bottom: none;
    margin-bottom: 0.5rem;
  }
  .prod-tab-btn {
    white-space: normal;
    text-align: left;
    padding: 0.6rem 0.75rem;
    font-size: 9px;
    border: 1px solid var(--border);
    bottom: 0;
    justify-content: flex-start;
  }
  .prod-tab-btn.active {
    border-color: var(--cyan);
    border-bottom-color: var(--cyan);
  }
}

/* =====================================================
   GALLERY — clickable items
   ===================================================== */
.gallery-item--link {
  cursor: pointer;
}
.gallery-item--link:hover .gallery-nav-hint { opacity: 1; }

.gallery-nav-hint {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top, rgba(249,115,22,0.85), transparent);
  padding: 2rem 1rem 0.6rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  opacity: 0;
  transition: opacity 0.3s;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  z-index: 2;
}

/* =====================================================
   COUNT-UP STATS (animated numbers)
   ===================================================== */
.count-up {
  display: inline-block;
  transition: none;
}
