/* ═══════════════════════════════════════════════════
   ATOMEX STRUCTURAL BUILDERS — Main Stylesheet
   ═══════════════════════════════════════════════════ */

:root {
  --bg-primary:    #020B18;
  --bg-secondary:  #071628;
  --bg-card:       #0A1E35;
  --bg-card-hover: #0D2840;
  --blue:          #00C6FF;
  --blue-light:    #40D9FF;
  --blue-dark:     #0055CC;
  --gold:          #00C6FF;
  --gold-light:    #80E5FF;
  --cyan:          #00C6FF;
  --cyan-dim:      rgba(0,198,255,0.12);
  --text-primary:  #FFFFFF;
  --text-secondary:#A8C0D6;
  --text-muted:    #5E7A96;
  --border:        #0E2D50;
  --border-glow:   rgba(0,198,255,0.25);
  --radius:        8px;
  --radius-lg:     16px;
  --transition:    0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --section-pad:   5rem 0;
  --max-width:     1200px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  overflow-x: hidden;
  line-height: 1.6;
}

::selection { background: var(--blue); color: #fff; }

a { text-decoration: none; color: inherit; transition: color var(--transition); }
img { display: block; max-width: 100%; }
svg { display: block; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }
input, textarea, select { font: inherit; }
address { font-style: normal; }

/* ─── NAVIGATION ────────────────────────────────── */
#navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 1rem 0;
  transition: background var(--transition), padding var(--transition), box-shadow var(--transition);
}

#navbar.scrolled {
  background: rgba(2, 11, 24, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 4px 30px rgba(0,0,0,0.4);
}

.nav-container {
  max-width: var(--max-width); margin: 0 auto;
  padding: 0 2rem;
  display: flex; align-items: center; justify-content: space-between;
}

.nav-logo {
  display: flex; align-items: center; gap: 0.75rem;
}

.nav-logo img {
  height: 40px; width: 40px; object-fit: contain;
  filter: drop-shadow(0 0 8px var(--cyan-dim));
}

.nav-logo span {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.2rem; font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.08em;
}

.nav-links {
  display: flex; align-items: center; gap: 2rem;
}

.nav-links a {
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.1em;
  color: var(--text-secondary); text-transform: uppercase;
  position: relative; transition: color var(--transition);
}

.nav-links a::after {
  content: ''; position: absolute; left: 0; bottom: -4px;
  width: 0; height: 1px; background: var(--blue-light);
  transition: width var(--transition);
}

.nav-links a:hover { color: var(--text-primary); }
.nav-links a:hover::after { width: 100%; }

.nav-cta {
  background: linear-gradient(135deg, var(--blue), var(--blue-dark));
  color: #fff !important;
  padding: 0.5rem 1.25rem !important;
  border-radius: var(--radius);
  border: 1px solid var(--blue);
  transition: box-shadow var(--transition), transform var(--transition) !important;
  text-transform: uppercase !important; letter-spacing: 0.05em;
}

.nav-cta::after { display: none !important; }

.nav-cta:hover {
  box-shadow: 0 0 20px rgba(0, 198, 255, 0.45);
  transform: translateY(-1px);
}

.hamburger {
  display: none; flex-direction: column; gap: 5px;
  padding: 4px;
}

.hamburger span {
  display: block; width: 24px; height: 2px;
  background: var(--text-primary);
  transition: var(--transition);
  transform-origin: center;
}

.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ─── SECTION SHARED ────────────────────────────── */
.section-container {
  max-width: var(--max-width); margin: 0 auto;
  padding: var(--section-pad); padding-left: 2rem; padding-right: 2rem;
}

.section-label {
  font-size: 0.7rem; font-weight: 600; letter-spacing: 0.25em;
  color: var(--blue-light); text-transform: uppercase;
  margin-bottom: 0.75rem;
  position: relative; padding-left: 1.25rem;
}

.section-label::before {
  content: ''; position: absolute; left: 0; top: 50%;
  width: 0.75rem; height: 1px; background: var(--blue-light);
  transform: translateY(-50%);
}

.section-title {
  font-family: 'Rajdhani', sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700; line-height: 1.15;
  margin-bottom: 1rem; letter-spacing: 0.5px;
}

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

.section-desc {
  color: var(--text-secondary); font-size: 1rem;
  max-width: 600px; margin-bottom: 3rem;
}

.text-center { text-align: center; }
.text-center.section-desc { margin-left: auto; margin-right: auto; }

/* ─── REVEAL ANIMATION ──────────────────────────── */
.reveal {
  opacity: 0; transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1; transform: translateY(0);
}

/* ─── BUTTONS ───────────────────────────────────── */
.btn-primary {
  display: inline-flex; align-items: center; gap: 0.6rem;
  background: linear-gradient(135deg, var(--blue), var(--blue-dark));
  color: #fff; font-weight: 600; font-size: 0.9rem;
  padding: 0.85rem 2rem; border-radius: var(--radius);
  border: 1px solid var(--blue);
  transition: box-shadow var(--transition), transform var(--transition), background var(--transition);
  letter-spacing: 0.05em; text-transform: uppercase;
}

.btn-primary svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.btn-primary:hover {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  box-shadow: 0 0 30px rgba(0, 198, 255, 0.5);
  transform: translateY(-2px);
}

.btn-primary.full-width { width: 100%; justify-content: center; }

.btn-ghost {
  display: inline-flex; align-items: center; gap: 0.6rem;
  color: var(--text-secondary); font-weight: 500; font-size: 0.9rem;
  padding: 0.85rem 2rem; border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: var(--transition);
  letter-spacing: 0.03em;
}

.btn-ghost:hover {
  color: var(--text-primary); border-color: var(--blue);
  background: rgba(0, 198, 255, 0.1);
}

/* ═══════════════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════════════ */
#hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center;
  overflow: hidden;
}

#heroCanvas {
  position: absolute; inset: 0; width: 100%; height: 100%;
  z-index: 0;
}

#hero::before {
  content: '';
  position: absolute; inset: 0; z-index: 1;
  background: url('../assets/Web banner image.jpg') center/cover no-repeat;
  opacity: 0.2;
  pointer-events: none;
}

.grid-overlay {
  position: absolute; inset: 0; z-index: 2;
  background-image:
    linear-gradient(rgba(0,198,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,198,255,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black, transparent);
}

.hero-content {
  position: relative; z-index: 3;
  max-width: var(--max-width); margin: 0 auto;
  padding: 8rem 2rem 4rem;
  width: 100%;
}

.hero-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.7rem; font-weight: 600; letter-spacing: 0.2em;
  color: var(--gold); text-transform: uppercase;
  border: 1px solid rgba(0, 198, 255, 0.3);
  background: rgba(0, 198, 255, 0.08);
  padding: 0.4rem 1rem; border-radius: 50px;
  margin-bottom: 1.5rem;
  animation: fadeInDown 1s ease forwards;
}

.badge-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--gold);
  animation: pulse 2s infinite;
}

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

.hero-title {
  font-family: 'Rajdhani', sans-serif;
  font-size: clamp(1.5rem, 4vw, 3.2rem);
  font-weight: 700; line-height: 1.05;
  margin-bottom: 1.5rem; max-width: 800px;
  animation: fadeInUp 1s ease 0.2s both;
}

.hero-title .line2 em {
  font-style: normal;
  background: linear-gradient(90deg, var(--gold), var(--gold-light), var(--gold));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-sub {
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  color: var(--text-secondary); max-width: 580px;
  line-height: 1.7; margin-bottom: 2.5rem;
  animation: fadeInUp 1s ease 0.4s both;
}

.hero-cta {
  display: flex; gap: 1rem; flex-wrap: wrap;
  margin-bottom: 4rem;
  animation: fadeInUp 1s ease 0.6s both;
}

.hero-stats {
  display: flex; align-items: center; gap: 0; flex-wrap: wrap;
  animation: fadeInUp 1s ease 0.8s both;
}

.stat {
  padding: 0 2rem;
  text-align: center;
}

.stat:first-child { padding-left: 0; }

.stat-num {
  display: block;
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700; color: var(--cyan);
  line-height: 1;
}

.stat span { font-family: 'Orbitron', sans-serif; font-size: 1.2rem; color: var(--cyan); }
.stat small { display: block; font-size: 0.7rem; letter-spacing: 0.1em; color: var(--text-muted); margin-top: 0.25rem; }

.stat-divider {
  width: 1px; height: 40px;
  background: linear-gradient(180deg, transparent, var(--border), transparent);
}

.hero-scroll {
  position: absolute; bottom: 2rem; left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
  z-index: 3;
  animation: fadeIn 1s ease 1.5s both;
}

.scroll-line {
  width: 1px; height: 40px;
  background: linear-gradient(180deg, transparent, var(--blue-light));
  animation: scrollAnim 2s ease infinite;
}

@keyframes scrollAnim {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  50.01% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

.hero-scroll span {
  font-size: 0.6rem; letter-spacing: 0.2em; color: var(--text-muted);
}

/* ═══════════════════════════════════════════════════
   ABOUT
   ═══════════════════════════════════════════════════ */
#about {
  background: linear-gradient(180deg, var(--bg-primary), var(--bg-secondary));
  border-top: 1px solid var(--border);
}

.about-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4rem;
  align-items: start; margin-top: 2rem;
}

.about-left p {
  color: var(--text-secondary); line-height: 1.8;
  margin-bottom: 1.25rem;
}

.about-tags {
  display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.5rem;
}

.about-tags span {
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.05em;
  color: var(--blue-light); background: rgba(0,198,255,0.1);
  border: 1px solid rgba(0,198,255,0.3);
  padding: 0.35rem 0.85rem; border-radius: 50px;
}

.vision-mission-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1rem;
}

.vm-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 1.5rem;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.vm-card:hover {
  border-color: var(--blue); box-shadow: 0 4px 30px rgba(0,198,255,0.15);
}

.vm-card.full { grid-column: 1 / -1; }

.vm-icon {
  width: 36px; height: 36px; margin-bottom: 0.75rem;
  color: var(--gold);
}

.vm-icon svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.vm-card h3 {
  font-family: 'Rajdhani', sans-serif;
  font-size: 1rem; font-weight: 600;
  margin-bottom: 0.5rem; color: var(--text-primary);
}

.vm-card p { font-size: 0.85rem; color: var(--text-secondary); line-height: 1.65; }

.strengths-list {
  display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.75rem;
}

.strengths-list span {
  font-size: 0.75rem; font-weight: 500;
  color: var(--cyan); background: rgba(0,198,255,0.08);
  border: 1px solid rgba(0,198,255,0.2);
  padding: 0.25rem 0.75rem; border-radius: 4px;
}

/* ═══════════════════════════════════════════════════
   SERVICES
   ═══════════════════════════════════════════════════ */
#services {
  background: var(--bg-secondary);
  position: relative;
  border-top: 1px solid var(--border);
}

#services::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--blue), transparent);
}

#services::after {
  content: '';
  position: absolute; inset: 0; z-index: 0;
  background: url('../assets/Mazzanine.jpg') center/cover no-repeat;
  opacity: 0.35;
  pointer-events: none;
}

#services .section-container {
  position: relative; z-index: 1;
}

.services-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem;
}

.service-card {
  background: rgba(10, 30, 53, 0.8);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.07);
  border-radius: var(--radius-lg); padding: 1.75rem;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition), background var(--transition);
  position: relative; overflow: hidden;
}

.service-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--blue-light), transparent);
  opacity: 0; transition: opacity var(--transition);
}

.service-card:hover {
  background: rgba(10, 30, 53, 0.5);
  border-color: rgba(0, 198, 255, 0.35);
  box-shadow: 0 12px 48px rgba(0, 198, 255, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transform: translateY(-4px);
}

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

.service-icon {
  width: 48px; height: 48px; margin-bottom: 1.25rem;
  color: var(--blue-light);
}

.service-icon svg { width: 100%; height: 100%; }

.service-card h3 {
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.05rem; font-weight: 600;
  margin-bottom: 0.75rem; line-height: 1.3;
}

.service-card p {
  font-size: 0.82rem; color: var(--text-secondary); line-height: 1.7;
  margin-bottom: 1rem;
}

.service-tag {
  display: inline-block;
  font-size: 0.65rem; font-weight: 700; letter-spacing: 0.1em;
  color: var(--blue); background: rgba(0,198,255,0.1);
  border: 1px solid rgba(0,198,255,0.3);
  padding: 0.2rem 0.6rem; border-radius: 3px;
  text-transform: uppercase;
}

/* ═══════════════════════════════════════════════════
   PROJECTS
   ═══════════════════════════════════════════════════ */
#projects {
  background: var(--bg-primary);
  border-top: 1px solid var(--border);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 280px;
  gap: 1.25rem;
}

.project-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
  display: flex; flex-direction: column;
  transition: border-color var(--transition), box-shadow var(--transition);
  position: relative;
}

.project-card.large { grid-column: span 2; }

.project-card:hover {
  border-color: var(--blue);
  box-shadow: 0 0 40px rgba(0,198,255,0.2);
}

.project-visual {
  flex: 1; position: relative; overflow: hidden;
  background: linear-gradient(135deg, #080f1e, #0d1a30);
  display: flex; align-items: center; justify-content: center;
  min-height: 160px;
}

.pv1 { background: linear-gradient(135deg, #040d1a 0%, #0a1628 50%, #061020 100%); }
.pv2 { background: linear-gradient(135deg, #05101e 0%, #091522 50%, #050e1c 100%); }
.pv3 { background: linear-gradient(135deg, #03080f 0%, #061020 50%, #040c18 100%); }
.pv4 { background: linear-gradient(135deg, #060e1a 0%, #0a1728 50%, #06101e 100%); }
.pv5 { background: linear-gradient(135deg, #040a16 0%, #081422 50%, #040c18 100%); }

.project-3d { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; padding: 1rem; }

/* Structure visualizations */
.structure-viz {
  position: relative; width: 180px; height: 100px;
}

.sv-frame {
  position: absolute; bottom: 0; left: 10px; right: 10px; height: 70px;
  border: 1.5px solid var(--blue); border-top: none;
  opacity: 0.7;
}

.sv-roof {
  position: absolute; top: 0; left: 0; right: 0; height: 0;
  border-left: 90px solid transparent;
  border-right: 90px solid transparent;
  border-bottom: 30px solid rgba(0,198,255,0.4);
}

.sv-col {
  position: absolute; bottom: 0; width: 3px; height: 70px;
  background: linear-gradient(180deg, var(--gold), var(--blue-dark));
}

.sv-col1 { left: 10px; }
.sv-col2 { left: 60px; }
.sv-col3 { right: 60px; }
.sv-col4 { right: 10px; }

.project-visual::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, rgba(0,198,255,0.08) 0%, transparent 70%);
  animation: glowPulse 3s ease infinite;
}

@keyframes glowPulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

/* multi-story */
.multistory-viz { position: relative; width: 100px; height: 100px; }
.ms-floor {
  position: absolute; left: 10px; right: 10px; height: 5px;
  background: var(--blue); border-radius: 1px; opacity: 0.8;
}
.ms-col { position: absolute; width: 3px; bottom: 0; height: 90px; background: linear-gradient(180deg, var(--gold) 0%, var(--blue-dark) 100%); }
.msc1 { left: 10px; }
.msc2 { left: 50%; transform: translateX(-50%); }
.msc3 { right: 10px; }

/* spaceframe */
.spaceframe-viz { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
.sf-svg { width: 180px; height: 120px; }

/* truss */
.truss-viz { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
.tv-svg { width: 180px; height: 100px; }

/* epc */
.epc-complex { position: relative; width: 200px; height: 100px; }
.epc-building { position: absolute; border: 1.5px solid var(--blue); background: rgba(0,198,255,0.05); bottom: 15px; }
.eb1 { left: 0; width: 60px; height: 80px; }
.eb2 { left: 70px; width: 80px; height: 100px; border-color: var(--gold); }
.eb3 { right: 0; width: 40px; height: 60px; }
.epc-road { position: absolute; bottom: 0; left: 0; right: 0; height: 15px; background: rgba(0,198,255,0.1); border-top: 1px solid var(--blue-dark); }

.project-card:hover .project-3d svg { filter: drop-shadow(0 0 6px var(--cyan)); }

.project-info {
  padding: 1.25rem; border-top: 1px solid var(--border);
}

.project-type {
  font-size: 0.65rem; font-weight: 700; letter-spacing: 0.12em;
  color: var(--cyan); text-transform: uppercase; display: block; margin-bottom: 0.4rem;
}

.project-info h3 {
  font-family: 'Rajdhani', sans-serif;
  font-size: 1rem; font-weight: 600; margin-bottom: 0.3rem;
}

.project-info p {
  font-size: 0.8rem; color: var(--text-secondary); line-height: 1.55; margin-bottom: 0.75rem;
}

.project-meta { display: flex; gap: 1rem; }
.project-meta span {
  font-size: 0.7rem; color: var(--text-muted);
  padding: 0.15rem 0.5rem;
  background: rgba(255,255,255,0.04); border-radius: 3px;
}

/* ═══════════════════════════════════════════════════
   PRODUCTS
   ═══════════════════════════════════════════════════ */
#products {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
}

.products-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem;
}

.product-card {
  background: rgba(10, 30, 53, 0.8);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.07);
  border-radius: var(--radius-lg); padding: 1.75rem;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition), background var(--transition);
  position: relative;
}

.product-card:hover {
  background: rgba(10, 30, 53, 0.5);
  border-color: rgba(0, 198, 255, 0.35);
  box-shadow: 0 12px 48px rgba(0, 198, 255, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transform: translateY(-4px);
}

.product-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 1.25rem;
}

.product-num {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.9rem; font-weight: 700;
  color: var(--border); letter-spacing: 0.1em;
}

.product-badge {
  font-size: 0.6rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--gold);
  border: 1px solid rgba(0,198,255,0.4); background: rgba(0,198,255,0.08);
  padding: 0.15rem 0.5rem; border-radius: 3px;
}

.product-visual {
  display: flex; justify-content: center; align-items: center;
  height: 100px; margin-bottom: 1.25rem;
  background: rgba(0,0,0,0.2); border-radius: var(--radius);
  border: 1px solid var(--border);
}

.product-svg {
  width: 100%; height: 80px;
  stroke: currentColor; fill: none;
  stroke-linecap: round; stroke-linejoin: round;
  filter: drop-shadow(0 0 4px rgba(0,198,255,0.3));
  transition: filter var(--transition);
}

.product-card:hover .product-svg {
  filter: drop-shadow(0 0 8px rgba(0,198,255,0.4));
}

.product-visual-photo {
  padding: 0; overflow: hidden; border-radius: var(--radius); position: relative;
  height: 260px;
}

.product-photo {
  width: 100%; height: 100%; object-fit: cover;
  display: block; border-radius: var(--radius);
  transition: transform 0.6s ease;
}

.product-card-photo:hover .product-photo { transform: scale(1.04); }

.product-photo-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(2,11,24,0.05) 0%, rgba(2,11,24,0.5) 100%);
  border-radius: var(--radius);
  pointer-events: none;
}

.product-card h3 {
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.1rem; font-weight: 600; margin-bottom: 0.5rem;
}

.product-card p {
  font-size: 0.82rem; color: var(--text-secondary); line-height: 1.65; margin-bottom: 1rem;
}

.product-specs {
  border-top: 1px solid var(--border); padding-top: 0.75rem;
  display: flex; flex-direction: column; gap: 0.3rem;
}

.product-specs li {
  font-size: 0.75rem; color: var(--text-muted);
  display: flex; align-items: center; gap: 0.5rem;
}

.product-specs li::before {
  content: ''; width: 5px; height: 1px; background: var(--blue-light); flex-shrink: 0;
}

/* ═══════════════════════════════════════════════════
   WHY ATOMEX
   ═══════════════════════════════════════════════════ */
#why {
  position: relative; overflow: hidden;
  border-top: 1px solid var(--border);
}

.why-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 10% 50%, rgba(0,198,255,0.06) 0%, transparent 70%),
    radial-gradient(ellipse 40% 60% at 90% 30%, rgba(0,198,255,0.04) 0%, transparent 70%),
    var(--bg-primary);
}

#why .section-container { position: relative; }

.why-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem;
  margin-top: 2rem;
}

.why-card {
  background: rgba(10, 30, 53, 0.8);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.07);
  border-radius: var(--radius-lg); padding: 2rem;
  text-align: center;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition), background var(--transition);
}

.why-card:hover {
  background: rgba(10, 30, 53, 0.5);
  border-color: rgba(0, 198, 255, 0.35);
  box-shadow: 0 12px 48px rgba(0, 198, 255, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transform: translateY(-3px);
}

.why-icon {
  width: 56px; height: 56px; margin: 0 auto 1.25rem;
  background: rgba(0,198,255,0.08); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--border);
}

.why-icon svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.why-card h3 {
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.1rem; font-weight: 600; margin-bottom: 0.6rem;
}

.why-card p { font-size: 0.85rem; color: var(--text-secondary); line-height: 1.65; }

/* ═══════════════════════════════════════════════════
   COUNTERS
   ═══════════════════════════════════════════════════ */
#counters {
  background: linear-gradient(135deg, #020B18 0%, #030e22 50%, #020B18 100%);
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  position: relative; overflow: hidden;
}

#counters::before {
  content: '';
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 80%; height: 1px;
  background: linear-gradient(90deg, transparent, var(--blue-light), var(--gold), var(--blue-light), transparent);
}

#counters .section-container { padding-top: 3rem; padding-bottom: 3rem; }

.counters-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem;
  text-align: center;
}

.counter-item { padding: 1.5rem; }

.counter-num {
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(2rem, 4vw, 3rem); font-weight: 900;
  background: linear-gradient(135deg, var(--cyan), var(--blue-light));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1; margin-bottom: 0.5rem;
}

.counter-label {
  font-size: 0.8rem; letter-spacing: 0.1em;
  color: var(--text-muted); text-transform: uppercase;
}

/* ═══════════════════════════════════════════════════
   CERTIFICATIONS / CLIENTS
   ═══════════════════════════════════════════════════ */
#clients {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
}

.certs-grid {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 1rem;
  margin-top: 2rem; margin-bottom: 3rem;
}

.cert-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 1.25rem 0.75rem;
  text-align: center;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}

.cert-card:hover {
  border-color: var(--gold);
  box-shadow: 0 4px 20px rgba(0,198,255,0.15);
  transform: translateY(-3px);
}

.cert-icon { width: 50px; height: 50px; margin: 0 auto 0.75rem; }
.cert-icon svg { width: 100%; height: 100%; }

.cert-card span {
  display: block; font-size: 0.8rem; font-weight: 600; margin-bottom: 0.2rem;
}

.cert-card small { font-size: 0.7rem; color: var(--text-muted); }

/* Marquee */
.clients-marquee { margin-top: 1.5rem; }

.marquee-wrapper {
  overflow: hidden; position: relative;
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--bg-card);
}

.marquee-wrapper::before,
.marquee-wrapper::after {
  content: '';
  position: absolute; top: 0; bottom: 0; width: 80px; z-index: 1;
}

.marquee-wrapper::before { left: 0; background: linear-gradient(90deg, var(--bg-card), transparent); }
.marquee-wrapper::after { right: 0; background: linear-gradient(-90deg, var(--bg-card), transparent); }

.marquee-track {
  display: flex; gap: 0; align-items: center;
  animation: marqueeAnim 25s linear infinite;
  width: max-content;
}

@keyframes marqueeAnim {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.client-logo {
  padding: 1rem 2rem;
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.15em;
  color: var(--text-muted); text-transform: uppercase;
  border-right: 1px solid var(--border);
  white-space: nowrap;
  transition: color var(--transition);
}

.client-logo:hover { color: var(--blue-light); }

/* ═══════════════════════════════════════════════════
   CONTACT
   ═══════════════════════════════════════════════════ */
#contact {
  background: var(--bg-primary);
  border-top: 1px solid var(--border);
}

.contact-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4rem;
  margin-top: 2rem;
}

.contact-detail {
  display: flex; gap: 1rem; align-items: flex-start;
  margin-bottom: 1.75rem;
}

.cd-icon {
  width: 44px; height: 44px; flex-shrink: 0;
  background: rgba(0,198,255,0.1); border: 1px solid rgba(0,198,255,0.3);
  border-radius: var(--radius); display: flex; align-items: center; justify-content: center;
}

.cd-icon svg { width: 20px; height: 20px; fill: none; stroke: var(--blue-light); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.contact-detail strong { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 0.25rem; }
.contact-detail p { font-size: 0.85rem; color: var(--text-secondary); line-height: 1.6; }
.contact-detail a:hover { color: var(--blue-light); }

.contact-map {
  width: 100%; height: 220px; border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--border); margin-top: 1rem;
}

.contact-map iframe { width: 100%; height: 100%; border: none; filter: invert(90%) hue-rotate(180deg) brightness(0.85); }

/* Form */
.contact-form {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 2.5rem;
}

.contact-form h3 {
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.4rem; font-weight: 700; margin-bottom: 1.75rem;
  color: var(--text-primary);
}

.form-group {
  position: relative; margin-bottom: 1.25rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%; padding: 0.85rem 1rem;
  background: rgba(0,0,0,0.3); border: 1px solid var(--border);
  border-radius: var(--radius); color: var(--text-primary);
  font-size: 0.9rem;
  transition: border-color var(--transition), box-shadow var(--transition);
  appearance: none;
}

.form-group textarea { resize: vertical; min-height: 100px; }

.form-group select { cursor: pointer; }

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none; border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0,198,255,0.15);
}

.form-group label {
  position: absolute; left: 1rem; top: 0.85rem;
  font-size: 0.85rem; color: var(--text-muted);
  pointer-events: none;
  transition: all 0.2s ease;
  background: transparent;
}

.form-group input:focus ~ label,
.form-group input:not(:placeholder-shown) ~ label,
.form-group textarea:focus ~ label,
.form-group textarea:not(:placeholder-shown) ~ label,
.form-group select:focus ~ label,
.form-group select:valid ~ label {
  top: -0.6rem; left: 0.75rem;
  font-size: 0.7rem; color: var(--blue-light);
  background: var(--bg-card); padding: 0 0.25rem;
}

.form-success {
  display: none; margin-top: 1rem;
  padding: 0.75rem 1rem;
  background: rgba(26,173,80,0.1); border: 1px solid rgba(26,173,80,0.3);
  border-radius: var(--radius); font-size: 0.85rem; color: #4ade80; text-align: center;
}

.form-success.visible { display: block; }

/* ═══════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════ */
#footer {
  background: #010610;
  border-top: 1px solid var(--border);
}

.footer-top { padding: 4rem 2rem; }

.footer-grid {
  max-width: var(--max-width); margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 3rem;
}

.footer-brand img { height: 56px; object-fit: contain; margin-bottom: 1rem; }
.footer-brand p { font-size: 0.85rem; color: var(--text-muted); line-height: 1.8; margin-bottom: 1.25rem; }

.footer-social { display: flex; gap: 0.75rem; }
.footer-social a {
  width: 36px; height: 36px;
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted);
  transition: border-color var(--transition), color var(--transition), background var(--transition);
}
.footer-social a:hover { border-color: var(--blue); color: var(--blue-light); background: rgba(0,198,255,0.1); }
.footer-social svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.footer-col h4 {
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.95rem; font-weight: 700; letter-spacing: 0.05em;
  color: var(--text-primary); margin-bottom: 1rem;
  position: relative; padding-bottom: 0.5rem;
}

.footer-col h4::after {
  content: ''; position: absolute; left: 0; bottom: 0;
  width: 24px; height: 1px; background: var(--blue);
}

.footer-col ul li { margin-bottom: 0.5rem; }
.footer-col a { font-size: 0.82rem; color: var(--text-muted); transition: color var(--transition); }
.footer-col a:hover { color: var(--blue-light); }
.footer-col address p { font-size: 0.82rem; color: var(--text-muted); margin-bottom: 0.5rem; line-height: 1.6; }
.footer-col address a:hover { color: var(--blue-light); }

.footer-bottom {
  border-top: 1px solid var(--border); padding: 1.5rem 2rem;
  display: flex; justify-content: space-between; align-items: center;
  max-width: var(--max-width); margin: 0 auto;
  font-size: 0.75rem; color: var(--text-muted);
}

/* ─── BACK TO TOP ───────────────────────────────── */
#backToTop {
  position: fixed; bottom: 2rem; right: 2rem; z-index: 900;
  width: 44px; height: 44px;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); color: var(--text-secondary);
  display: flex; align-items: center; justify-content: center;
  transition: all var(--transition);
  opacity: 0; visibility: hidden; pointer-events: none;
}

#backToTop.visible { opacity: 1; visibility: visible; pointer-events: auto; }
#backToTop:hover { border-color: var(--blue); color: var(--blue-light); background: rgba(0,198,255,0.1); }
#backToTop svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ─── FADE ANIMATIONS ───────────────────────────── */
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-15px); }
  to { opacity: 1; transform: translateY(0); }
}

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

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ═══════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════ */
@media (max-width: 1200px) {
  .products-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 1100px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .certs-grid { grid-template-columns: repeat(3, 1fr); }
  .products-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; gap: 2rem; }
  .projects-grid { grid-template-columns: 1fr 1fr; }
  .project-card.large { grid-column: span 2; }
  .products-grid { grid-template-columns: 1fr 1fr; }
  .why-grid { grid-template-columns: 1fr 1fr; }
  .counters-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed; top: 0; right: 0; bottom: 0; width: 280px;
    background: rgba(2,11,24,0.98); backdrop-filter: blur(20px);
    flex-direction: column; gap: 0; align-items: stretch;
    padding: 5rem 0 2rem;
    transform: translateX(100%); transition: transform var(--transition);
    border-left: 1px solid var(--border);
    z-index: 999;
  }

  .nav-links.open { transform: translateX(0); }

  .nav-links a {
    padding: 1rem 2rem; font-size: 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.04);
  }

  .nav-links a::after { display: none; }

  .nav-cta {
    margin: 1rem 2rem !important;
    border-radius: var(--radius) !important;
    text-align: center; display: block !important;
  }

  .hamburger { display: flex; z-index: 1000; }

  .hero-stats { gap: 0; }
  .stat { padding: 0 1rem; }

  .services-grid { grid-template-columns: 1fr; }
  .projects-grid { grid-template-columns: 1fr; }
  .project-card.large { grid-column: span 1; }
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: 1fr; }
  .counters-grid { grid-template-columns: repeat(2, 1fr); }
  .certs-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }
  .vision-mission-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .hero-cta { flex-direction: column; }
  .hero-stats { gap: 0; }
  .stat-divider { display: none; }
  .stat { flex: 1 0 50%; padding: 0.75rem; }
  .counters-grid { grid-template-columns: 1fr 1fr; }
  .certs-grid { grid-template-columns: 1fr 1fr; }
  .contact-form { padding: 1.5rem; }
}
