/* ═══════════════════════════════════════════════
   EnvriCon — styles.css
   Environmental Protection & Engineering, Kosovo
   ═══════════════════════════════════════════════ */

:root {
  --bg: #080e09;
  --bg2: #0e1a10;
  --bg3: #131f15;
  --card: #0f1a11;
  --green: #3ddc68;
  --green-dim: #2ab354;
  --sage: #7aab88;
  --text: #e8f4eb;
  --text-muted: #6b8c73;
  --border: #1e3322;
  --white: #f2faf4;
}

/* ─── TYPOGRAPHY FIXES FOR TRANSLATIONS ─── */
* {
  hyphens: auto;
  -webkit-hyphens: auto;
  overflow-wrap: break-word;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Instrument Sans', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

/* Noise texture overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
  opacity: 0.4;
}

h1, h2, h3, h4 {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  word-break: break-word;
}

/* ───────── NAV ───────── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1.25rem 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(8,14,9,0.85);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  transition: all 0.3s ease;
}

.logo {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: -0.03em;
  color: var(--white);
  text-decoration: none;
}

.logo span { color: var(--green); }

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--green); }

.nav-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.lang-switch {
  display: flex;
  gap: 0.5rem;
}

.lang-switch a {
  color: var(--text-muted);
  font-size: 0.75rem;
  text-transform: uppercase;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.08em;
  transition: color 0.2s;
}

.lang-switch a:hover,
.lang-switch a.active { color: var(--green); }
.lang-switch a + a::before { content: '/'; margin-right: 0.5rem; color: var(--border); }

.btn-nav {
  background: var(--green);
  color: #040a05;
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.6rem 1.4rem;
  border-radius: 3px;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
}

.btn-nav:hover { background: #57f080; transform: translateY(-1px); }

/* ───────── HERO ───────── */
#hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  position: relative;
  overflow: hidden;
}

.hero-left {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 8rem 3rem 5rem 3rem;
  position: relative;
  z-index: 2;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(61,220,104,0.1);
  border: 1px solid rgba(61,220,104,0.25);
  color: var(--green);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.4rem 1rem;
  border-radius: 2px;
  margin-bottom: 2rem;
  width: fit-content;
  opacity: 0;
  animation: fadeUp 0.8s 0.2s forwards;
}

.hero-tag::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--green);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

.hero-title {
  font-size: clamp(3rem, 5.5vw, 5.5rem);
  color: var(--white);
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeUp 0.9s 0.35s forwards;
}

.hero-title em {
  font-style: normal;
  color: var(--green);
}

.hero-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 480px;
  line-height: 1.8;
  margin-bottom: 2.5rem;
  opacity: 0;
  animation: fadeUp 0.9s 0.5s forwards;
}

.hero-ctas {
  display: flex;
  gap: 1rem;
  opacity: 0;
  animation: fadeUp 0.9s 0.65s forwards;
}

.btn-primary {
  background: var(--green);
  color: #040a05;
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: 0.04em;
  padding: 0.9rem 2rem;
  border-radius: 3px;
  text-decoration: none;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-primary:hover {
  background: #57f080;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(61,220,104,0.3);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  font-family: 'Syne', sans-serif;
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.04em;
  padding: 0.9rem 2rem;
  border-radius: 3px;
  text-decoration: none;
  border: 1px solid var(--border);
  transition: all 0.2s;
}

.btn-ghost:hover {
  border-color: var(--green);
  color: var(--green);
}

.hero-stats {
  display: flex;
  gap: 2.5rem;
  margin-top: 4rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--border);
  opacity: 0;
  animation: fadeUp 0.9s 0.8s forwards;
}

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

.stat-num {
  font-family: 'Syne', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1;
}

.stat-num span { color: var(--green); }

.stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 0.25rem;
}

/* Hero right — visual panel */
.hero-right {
  position: relative;
  overflow: hidden;
}

.hero-right::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(61,220,104,0.08) 0%, transparent 60%);
  z-index: 1;
}

.hero-visual {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 60% 40%, rgba(61,220,104,0.12) 0%, transparent 60%),
    radial-gradient(ellipse at 20% 80%, rgba(42,179,84,0.08) 0%, transparent 50%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg3) 100%);
}

/* Big decorative circle */
.hero-circle {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  border: 1px solid rgba(61,220,104,0.12);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: rotateSlow 30s linear infinite;
}

.hero-circle::before {
  content: '';
  position: absolute;
  inset: 40px;
  border-radius: 50%;
  border: 1px solid rgba(61,220,104,0.08);
}

.hero-circle::after {
  content: '';
  position: absolute;
  inset: 80px;
  border-radius: 50%;
  border: 1px dashed rgba(61,220,104,0.06);
}

/* Floating service pills in hero */
.hero-pill {
  position: absolute;
  z-index: 3;
  background: rgba(14,26,16,0.9);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 0.6rem 1.2rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--sage);
  white-space: nowrap;
  animation: floatPill 4s ease-in-out infinite;
}

.hero-pill:nth-of-type(1) { top: 20%; left: 10%; animation-delay: 0s; }
.hero-pill:nth-of-type(2) { top: 35%; right: 15%; animation-delay: 0.8s; }
.hero-pill:nth-of-type(3) { bottom: 40%; left: 18%; animation-delay: 1.6s; }
.hero-pill:nth-of-type(4) { bottom: 25%; right: 10%; animation-delay: 2.4s; }

.hero-pill .dot {
  display: inline-block;
  width: 5px; height: 5px;
  background: var(--green);
  border-radius: 50%;
  margin-right: 0.4rem;
  vertical-align: middle;
}

/* Big ENV text in background */
.hero-bg-text {
  position: absolute;
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 22vw;
  color: rgba(61,220,104,0.03);
  letter-spacing: -0.05em;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
}

/* Scroll indicator */
.scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 3rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-muted);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0;
  animation: fadeUp 1s 1.2s forwards;
}

.scroll-line {
  width: 40px; height: 1px;
  background: linear-gradient(90deg, var(--green), transparent);
}

/* ───────── SECTIONS COMMON ───────── */
section { padding: 7rem 3rem; }

.section-label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 1.5rem;
}

.section-label::before {
  content: '';
  width: 24px; height: 1px;
  background: var(--green);
}

.section-title {
  font-size: clamp(2rem, 3.5vw, 3rem);
  color: var(--white);
  max-width: 700px;
  margin-bottom: 1.5rem;
}

.section-sub {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.8;
  max-width: 580px;
  margin-bottom: 3rem;
}

/* ───────── SERVICES ───────── */
#services {
  background: var(--bg2);
  position: relative;
  overflow: hidden;
}

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

.services-header {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 2rem 4rem;
  margin-bottom: 4rem;
}

.services-header > div:first-child {
  flex: 1 1 500px;
  min-width: 0;
}

.services-header .section-sub {
  flex: 1 1 400px;
  margin-bottom: 0;
  min-width: 0;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5px;
  background: var(--border);
  border: 1.5px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
}

.service-card {
  background: var(--card);
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
  transition: background 0.3s;
  cursor: default;
}

.service-card:hover { background: #111f13; }

.service-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: var(--green);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
}

.service-card:hover::after { transform: scaleX(1); }

.service-icon {
  width: 44px; height: 44px;
  background: rgba(61,220,104,0.1);
  border: 1px solid rgba(61,220,104,0.2);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  font-size: 1.25rem;
}

.service-num {
  position: absolute;
  top: 1.5rem; right: 1.75rem;
  font-family: 'Syne', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--border);
  letter-spacing: 0.08em;
}

.service-card h3 {
  font-size: 1.05rem;
  color: var(--white);
  margin-bottom: 0.75rem;
  font-weight: 700;
}

.service-card p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ───────── ABOUT ───────── */
#about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: center;
}

.about-visual { position: relative; }

.about-box {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 2rem;
  position: relative;
  overflow: hidden;
  min-height: 420px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.about-box::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(61,220,104,0.1) 0%, transparent 60%),
    linear-gradient(135deg, var(--bg3) 0%, rgba(14,26,16,0.5) 100%);
}

.about-year {
  position: absolute;
  top: 2rem; right: 2rem;
  font-family: 'Syne', sans-serif;
  font-size: 5rem;
  font-weight: 800;
  color: rgba(61,220,104,0.06);
  line-height: 1;
}

.about-badge {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(61,220,104,0.12);
  border: 1px solid rgba(61,220,104,0.25);
  color: var(--green);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: 3px;
  margin-bottom: 1rem;
  width: fit-content;
}

.about-box-text {
  position: relative;
  z-index: 1;
  font-size: 1.25rem;
  color: var(--white);
  font-family: 'Syne', sans-serif;
  font-weight: 600;
  line-height: 1.4;
}

.about-mini-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1.5rem;
  position: relative;
  z-index: 1;
}

.mini-stat {
  background: rgba(8,14,9,0.6);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1rem;
}

.mini-stat-num {
  font-family: 'Syne', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--green);
}

.mini-stat-lbl {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
}

.about-content p {
  color: var(--text-muted);
  line-height: 1.9;
  margin-bottom: 1.25rem;
  font-size: 0.975rem;
}

.about-clients {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 2rem;
}

.client-tag {
  background: var(--bg3);
  border: 1px solid var(--border);
  color: var(--sage);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.35rem 0.85rem;
  border-radius: 100px;
  letter-spacing: 0.03em;
}

/* ───────── MISSION BAND ───────── */
#mission {
  background: var(--green);
  padding: 4rem 3rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

#mission::before {
  content: '"';
  position: absolute;
  font-family: 'Syne', sans-serif;
  font-size: 25rem;
  font-weight: 800;
  color: rgba(0,0,0,0.05);
  top: -4rem;
  left: 50%;
  transform: translateX(-50%);
  line-height: 1;
}

#mission blockquote {
  position: relative;
  z-index: 1;
  font-family: 'Syne', sans-serif;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 700;
  color: #040a05;
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.4;
}

#mission cite {
  display: block;
  font-family: 'Instrument Sans', sans-serif;
  font-style: normal;
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(4,10,5,0.6);
  margin-top: 1.25rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ───────── REFERENCES ───────── */
#references { background: var(--bg); }

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

.ref-card {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1.75rem;
  transition: border-color 0.25s, transform 0.25s;
}

.ref-card:hover {
  border-color: rgba(61,220,104,0.35);
  transform: translateY(-3px);
}

.ref-org {
  font-family: 'Syne', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.4rem;
}

.ref-type {
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.ref-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--green);
  margin-bottom: 1.25rem;
  opacity: 0.6;
}

.ref-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2.5rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0;
}

.ref-tab {
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--text-muted);
  font-family: 'Syne', sans-serif;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.75rem 1.5rem;
  cursor: pointer;
  margin-bottom: -1px;
  transition: color 0.2s, border-color 0.2s;
}

.ref-tab:hover { color: var(--text); }
.ref-tab.active { color: var(--green); border-bottom-color: var(--green); }

.ref-group-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 1.25rem;
}

.ref-dl {
  font-size: 0.75rem;
  color: var(--green);
  font-weight: 600;
  margin-top: 1rem;
  opacity: 0;
  transition: opacity 0.2s;
}

.ref-card:hover .ref-dl { opacity: 1; }

a.ref-card {
  text-decoration: none;
  display: block;
  cursor: pointer;
}

.cert-card { align-items: flex-start; }

.cert-icon {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.ref-grid-certs { grid-template-columns: repeat(3, 1fr); }

/* ───────── CONTACT ───────── */
#contact {
  background: var(--bg2);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: start;
}

.contact-info h2 {
  font-size: clamp(2rem, 3vw, 2.75rem);
  color: var(--white);
  margin-bottom: 1rem;
}

.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.contact-detail:last-of-type { border-bottom: none; }

.cd-icon {
  width: 36px; height: 36px;
  background: rgba(61,220,104,0.1);
  border: 1px solid rgba(61,220,104,0.2);
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.cd-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.cd-value {
  font-size: 0.95rem;
  color: var(--text);
  font-weight: 500;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

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

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-field label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  font-weight: 600;
}

.form-field input,
.form-field textarea,
.form-field select {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.85rem 1rem;
  color: var(--text);
  font-family: 'Instrument Sans', sans-serif;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s;
}

.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus { border-color: rgba(61,220,104,0.5); }

.form-field textarea { resize: vertical; min-height: 130px; }

.form-field select option { background: #111; }

.btn-submit {
  background: var(--green);
  color: #040a05;
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: 0.05em;
  padding: 1rem 2rem;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  align-self: flex-start;
  margin-top: 0.5rem;
}

.btn-submit:hover {
  background: #57f080;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(61,220,104,0.25);
}

/* ───────── FOOTER ───────── */
footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 3rem;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: center;
}

.footer-brand .logo {
  font-size: 1.2rem;
  display: inline-block;
  margin-bottom: 0.5rem;
}

.footer-brand p {
  font-size: 0.8rem;
  color: var(--text-muted);
  max-width: 320px;
}

.footer-right { text-align: right; }

.footer-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  margin-bottom: 1rem;
  justify-content: flex-end;
}

.footer-links a {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover { color: var(--green); }

.footer-copy {
  font-size: 0.75rem;
  color: var(--text-muted);
  opacity: 0.5;
}

/* ───────── ANIMATIONS ───────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

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

@keyframes rotateSlow {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to   { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes floatPill {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-8px); }
}

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ───────── HAMBURGER BUTTON ───────── */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px; height: 36px;
  background: none;
  border: 1px solid var(--border);
  border-radius: 4px;
  cursor: pointer;
  padding: 7px;
  transition: border-color 0.2s;
}
.hamburger:hover { border-color: var(--green); }
.hamburger span {
  display: block;
  height: 1.5px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s ease;
}
.hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ───────── MOBILE NAV OVERLAY ───────── */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 0; top: 68px;
  background: rgba(8,14,9,0.97);
  backdrop-filter: blur(16px);
  z-index: 99;
  flex-direction: column;
  padding: 2.5rem 1.75rem;
  gap: 0;
  border-top: 1px solid var(--border);
  animation: mobileNavIn 0.25s ease;
}
.mobile-nav.open { display: flex; }
@keyframes mobileNavIn {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: none; }
}
.mobile-nav a, .mobile-nav button {
  display: block;
  background: none;
  border: none;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  padding: 1.1rem 0;
  text-decoration: none;
  text-align: left;
  cursor: pointer;
  transition: color 0.2s;
  width: 100%;
}
.mobile-nav a:hover, .mobile-nav button:hover { color: var(--green); }
.mobile-nav a.active { color: var(--green); }
.mobile-nav .mobile-lang {
  display: flex;
  gap: 0.75rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  border-bottom: none;
}
.mobile-nav .mobile-lang a {
  font-size: 0.875rem;
  color: var(--text-muted);
  font-weight: 600;
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 0.4rem 0.85rem;
  text-align: center;
  width: auto;
}
.mobile-nav .mobile-lang a.active { color: var(--green); border-color: rgba(61,220,104,0.4); }
.mobile-nav .mobile-cta {
  margin-top: 1.5rem;
  background: var(--green);
  color: #040a05;
  font-size: 0.9rem;
  border-radius: 3px;
  padding: 0.85rem 1.5rem;
  text-align: center;
  border: none;
  border-bottom: none;
}

/* ───────── AUTH BUTTON IN NAV ───────── */
.auth-wrapper {
  position: relative;
}
.auth-btn {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text-muted);
  font-family: 'Instrument Sans', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.5rem 0.9rem;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
  white-space: nowrap;
}
.auth-btn:hover { border-color: var(--green); color: var(--text); }
.auth-btn.logged-in { border-color: rgba(61,220,104,0.35); color: var(--text); }
.auth-avatar {
  width: 22px; height: 22px;
  border-radius: 3px;
  background: rgba(61,220,104,0.15);
  border: 1px solid rgba(61,220,104,0.3);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 0.65rem;
  color: var(--green);
}
.auth-name { max-width: 80px; overflow: hidden; text-overflow: ellipsis; }

.auth-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 180px;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0,0,0,0.5);
  z-index: 200;
  animation: dropIn 0.18s ease;
}
.auth-dropdown.open { display: block; }
@keyframes dropIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: none; }
}
.auth-dd-item {
  display: block;
  width: 100%;
  padding: 0.75rem 1rem;
  color: var(--text);
  font-size: 0.825rem;
  font-weight: 500;
  text-decoration: none;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  border-bottom: 1px solid var(--border);
  font-family: 'Instrument Sans', sans-serif;
}
.auth-dd-item:last-child { border-bottom: none; }
.auth-dd-item:hover { background: rgba(61,220,104,0.06); color: var(--green); }

/* ───────── AUTH MODAL ───────── */
.auth-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(4,8,5,0.85);
  backdrop-filter: blur(8px);
  z-index: 500;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}
.auth-modal-overlay.open { display: flex; }

.auth-modal {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 10px;
  width: 100%;
  max-width: 420px;
  overflow: hidden;
  animation: authModalIn 0.22s ease;
}
@keyframes authModalIn {
  from { opacity: 0; transform: translateY(20px) scale(0.97); }
  to   { opacity: 1; transform: none; }
}
.auth-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem 0;
}
.auth-modal-head .logo { font-size: 1.2rem; }
.auth-modal-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.2rem;
  cursor: pointer;
  transition: color 0.2s;
  line-height: 1;
}
.auth-modal-close:hover { color: #e05555; }

.auth-tabs {
  display: flex;
  gap: 0;
  padding: 1rem 1.5rem 0;
  border-bottom: 1px solid var(--border);
  margin-top: 1rem;
}
.auth-tab {
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--text-muted);
  font-family: 'Syne', sans-serif;
  font-size: 0.825rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.6rem 1rem;
  cursor: pointer;
  margin-bottom: -1px;
  transition: color 0.2s, border-color 0.2s;
}
.auth-tab:hover { color: var(--text); }
.auth-tab.active { color: var(--green); border-bottom-color: var(--green); }

.auth-panel { display: none; padding: 1.5rem; }
.auth-panel.active { display: block; }

.auth-field { display: flex; flex-direction: column; gap: 0.35rem; margin-bottom: 1rem; }
.auth-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}
.auth-input {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 0.65rem 0.9rem;
  color: var(--text);
  font-size: 0.875rem;
  font-family: 'Instrument Sans', sans-serif;
  outline: none;
  transition: border-color 0.2s;
  width: 100%;
}
.auth-input:focus { border-color: rgba(61,220,104,0.5); }
.auth-input::placeholder { color: var(--text-muted); }
.auth-error {
  font-size: 0.75rem;
  color: #e05555;
  min-height: 1em;
  margin-top: -0.5rem;
  margin-bottom: 0.5rem;
}
.auth-submit {
  width: 100%;
  background: var(--green);
  color: #040a05;
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: 0.04em;
  padding: 0.85rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  margin-top: 0.5rem;
}
.auth-submit:hover { background: #57f080; transform: translateY(-1px); }
.auth-switch-text {
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 1rem;
}
.auth-switch-text button {
  background: none;
  border: none;
  color: var(--green);
  font-weight: 600;
  cursor: pointer;
  font-size: inherit;
  font-family: inherit;
}

/* ───────── AUTH TOAST ───────── */
.auth-toast {
  position: fixed;
  bottom: 1.75rem;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--bg3);
  border: 1px solid rgba(61,220,104,0.3);
  border-left: 3px solid var(--green);
  border-radius: 6px;
  padding: 0.85rem 1.5rem;
  font-size: 0.875rem;
  color: var(--text);
  box-shadow: 0 8px 30px rgba(0,0,0,0.5);
  z-index: 600;
  opacity: 0;
  transition: opacity 0.3s, transform 0.3s;
  white-space: nowrap;
}
.auth-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ───────── RESPONSIVE ───────── */
@media (max-width: 1024px) {
  nav { padding: 1.1rem 1.25rem; }
  .nav-links { display: none; }
  .btn-nav { display: none; }
  .hamburger { display: flex; }
  #hero { grid-template-columns: 1fr; }
  .hero-right { display: none; }
  .hero-left { padding: 7rem 1.25rem 4rem; }
  section { padding: 5rem 1.25rem; }
  .services-header { grid-template-columns: 1fr; gap: 1.5rem; }
  .services-grid { grid-template-columns: 1fr 1fr; }
  #about { grid-template-columns: 1fr; gap: 2.5rem; }
  #contact { grid-template-columns: 1fr; gap: 2.5rem; }
  .ref-grid { grid-template-columns: 1fr 1fr; }
  .ref-grid-certs { grid-template-columns: 1fr 1fr; }
  footer { grid-template-columns: 1fr; }
  .footer-right { text-align: left; }
  .footer-links { justify-content: flex-start; }
  .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .hero-title { font-size: clamp(2.5rem, 8vw, 4rem); }
  .hero-stats { gap: 1.25rem; flex-wrap: wrap; }
  .hero-ctas { flex-direction: column; align-items: flex-start; gap: 0.75rem; }
  .hero-ctas .btn-primary,
  .hero-ctas .btn-ghost { width: 100%; text-align: center; justify-content: center; }
  .services-grid { grid-template-columns: 1fr; }
  .ref-grid { grid-template-columns: 1fr; }
  .ref-grid-certs { grid-template-columns: 1fr; }
  .section-title { font-size: clamp(1.75rem, 5vw, 2.5rem); }
  .about-mini-stats { grid-template-columns: 1fr 1fr; }
  #mission { padding: 3rem 1.25rem; }
  .nav-right .lang-switch { display: none; } /* shown in mobile nav instead */
}

@media (max-width: 480px) {
  .hero-left { padding: 6rem 1rem 3rem; }
  section { padding: 4rem 1rem; }
  .stat-num { font-size: 1.5rem; }
  .service-card { padding: 1.75rem; }
  .about-mini-stats { grid-template-columns: 1fr; }
  .auth-modal { margin: 0.5rem; }
  .btn-primary, .btn-ghost { font-size: 0.8rem; padding: 0.75rem 1.25rem; }
}
