/* ========================================
   EURABIOTECH — Modern Biotech Website
   Dark luxury + scientific precision
   ======================================== */

:root {
  --bg:          #080d0a;
  --bg-2:        #0d1510;
  --bg-3:        #111a13;
  --surface:     #141f16;
  --surface-2:   #1a2a1d;
  --border:      rgba(130, 200, 140, 0.12);
  --border-2:    rgba(130, 200, 140, 0.22);
  --green:       #5aaa6e;
  --green-light: #82c88c;
  --green-dim:   rgba(90, 170, 110, 0.15);
  --text:        #e8f0e9;
  --text-muted:  #8fa893;
  --text-dim:    #4d6352;
  --accent:      #c8e6c9;

  --font-serif:  'Cormorant Garamond', Georgia, serif;
  --font-mono:   'DM Mono', monospace;
  --font-sans:   'Instrument Sans', sans-serif;

  --transition:  0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --radius:      4px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
}

::selection { background: var(--green); color: var(--bg); }

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--green); border-radius: 2px; }

/* ── TYPOGRAPHY ── */
h1, h2, h3 { font-family: var(--font-serif); font-weight: 300; line-height: 1.15; }
h1 { font-size: clamp(2.8rem, 6vw, 5.5rem); }
h2 { font-size: clamp(2rem, 4vw, 3.5rem); }
h3 { font-size: 1.5rem; }
em { font-style: italic; color: var(--green-light); }
a { color: inherit; text-decoration: none; transition: var(--transition); }

/* ── CONTAINER ── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 2rem;
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  border: 1px solid transparent;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.3s;
}
.btn:hover::before { opacity: 1; }

.btn--primary {
  background: var(--green);
  color: var(--bg);
  border-color: var(--green);
}
.btn--primary::before { background: var(--green-light); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(90,170,110,0.3); }

.btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-2);
}
.btn--ghost:hover { border-color: var(--green); color: var(--green-light); }
.btn--full { width: 100%; justify-content: center; }
.btn svg { width: 16px; height: 16px; position: relative; z-index: 1; }
.btn span { position: relative; z-index: 1; }

/* ── SECTION LABELS ── */
.section-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--green);
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1.5rem;
}
.section-label::before {
  content: '';
  display: block;
  width: 24px;
  height: 1px;
  background: var(--green);
}
.section-label--light { color: var(--green-light); }
.section-label--light::before { background: var(--green-light); }

.section-title { margin-bottom: 1.5rem; }
.section-header { margin-bottom: 5rem; }

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

/* ═══════════════════════════════════════
   NAV
═══════════════════════════════════════ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 3rem;
  transition: background 0.4s, padding 0.4s, border-bottom 0.4s;
}
.nav.scrolled {
  background: rgba(8, 13, 10, 0.92);
  backdrop-filter: blur(12px);
  padding: 1rem 3rem;
  border-bottom: 1px solid var(--border);
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  color: var(--text);
}
.nav__logo-mark {
  width: 28px; height: 28px;
  background: var(--green);
  color: var(--bg);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-serif);
  font-size: 1.1rem;
  border-radius: 2px;
}

.nav__links {
  display: flex;
  list-style: none;
  gap: 2.5rem;
  align-items: center;
}
.nav__links a {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.nav__links a:hover { color: var(--green-light); }
.nav__cta {
  background: var(--green-dim);
  border: 1px solid var(--green) !important;
  color: var(--green-light) !important;
  padding: 0.5rem 1.2rem;
  border-radius: var(--radius);
}
.nav__cta:hover { background: var(--green) !important; color: var(--bg) !important; }

.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
}
.nav__burger span {
  display: block;
  width: 24px;
  height: 1px;
  background: var(--text);
  transition: var(--transition);
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 99;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.mobile-menu.open { opacity: 1; pointer-events: all; }
.mobile-menu ul { list-style: none; text-align: center; }
.mobile-menu ul li { margin: 2rem 0; }
.mobile-menu ul a {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  color: var(--text);
  letter-spacing: 0.05em;
}
.mobile-menu ul a:hover { color: var(--green-light); }

/* ═══════════════════════════════════════
   HERO
═══════════════════════════════════════ */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 8rem 3rem 4rem;
  position: relative;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.hero__mesh {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 70% 40%, rgba(90,170,110,0.07) 0%, transparent 60%),
    radial-gradient(ellipse 40% 60% at 20% 60%, rgba(90,170,110,0.04) 0%, transparent 50%);
}

.hero__circles { position: absolute; inset: 0; }
.circle {
  position: absolute;
  border-radius: 50%;
  border: 1px solid var(--border);
  animation: float 8s ease-in-out infinite;
}
.c1 {
  width: 600px; height: 600px;
  top: -200px; right: -150px;
  animation-delay: 0s;
}
.c2 {
  width: 400px; height: 400px;
  top: 0px; right: 50px;
  border-color: rgba(90,170,110,0.07);
  animation-delay: -3s;
}
.c3 {
  width: 200px; height: 200px;
  top: 100px; right: 200px;
  border-color: rgba(90,170,110,0.1);
  animation-delay: -5s;
}
@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(5deg); }
}

.hero__dots {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(130,200,140,0.08) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse 60% 80% at 80% 50%, black 0%, transparent 70%);
}

.hero__content {
  max-width: 780px;
  position: relative;
  z-index: 2;
}
.hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 2rem;
}
.eyebrow-line {
  display: block;
  width: 40px;
  height: 1px;
  background: var(--green);
}
.hero__title {
  margin-bottom: 1.8rem;
  color: var(--accent);
}
.hero__sub {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 600px;
  margin-bottom: 3rem;
  line-height: 1.8;
}
.hero__actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero__stats {
  display: flex;
  align-items: center;
  gap: 0;
  margin-top: 6rem;
  padding: 2rem 2.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  width: fit-content;
  position: relative;
  z-index: 2;
  transition-delay: 0.3s !important;
}
.stat {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 0 2.5rem;
  text-align: center;
}
.stat:first-child { padding-left: 0; }
.stat:last-child { padding-right: 0; }
.stat__value {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  color: var(--green-light);
  font-weight: 300;
}
.stat__label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.stat__divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}

.hero__scroll {
  position: absolute;
  bottom: 3rem;
  right: 3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  z-index: 2;
}
.scroll-line {
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, transparent, var(--green));
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(1.1); }
}
.hero__scroll span {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-dim);
  writing-mode: vertical-rl;
}

/* ═══════════════════════════════════════
   VISION BAND
═══════════════════════════════════════ */
.vision-band {
  background: var(--green);
  padding: 3rem;
}
.vision-band__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 3rem;
}
.vision-band__label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(8,13,10,0.7);
  white-space: nowrap;
}
.vision-band__text {
  font-family: var(--font-serif);
  font-size: clamp(1.1rem, 2.5vw, 1.6rem);
  color: var(--bg);
  font-weight: 400;
  line-height: 1.4;
}

/* ═══════════════════════════════════════
   EXPERTISE
═══════════════════════════════════════ */
.expertise {
  padding: 8rem 0;
  background: var(--bg);
}

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

.pillar {
  background: var(--surface);
  padding: 3rem 2.5rem;
  position: relative;
  transition: background 0.3s;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.pillar:hover { background: var(--surface-2); }

.pillar__number {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  color: var(--text-dim);
}
.pillar__icon {
  width: 48px;
  height: 48px;
  color: var(--green);
  margin-bottom: 0.5rem;
}
.pillar__icon svg { width: 100%; height: 100%; }
.pillar__title {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  color: var(--accent);
}
.pillar__text {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
  flex: 1;
}
.pillar__line {
  position: absolute;
  bottom: 0; left: 0;
  height: 2px;
  width: 0;
  background: var(--green);
  transition: width 0.5s ease;
}
.pillar:hover .pillar__line { width: 100%; }

/* ═══════════════════════════════════════
   FILIERE
═══════════════════════════════════════ */
.filiere {
  position: relative;
  padding: 8rem 0;
  overflow: hidden;
}
.filiere__bg {
  position: absolute;
  inset: 0;
  background: var(--bg-3);
}
.filiere__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 50% 60% at 80% 50%, rgba(90,170,110,0.05) 0%, transparent 60%);
}

.filiere__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: center;
}
.filiere__desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.8;
  margin-top: 1rem;
}

.steps { display: flex; flex-direction: column; gap: 0; }

.step {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 1.5rem;
  position: relative;
  padding-bottom: 2rem;
}
.step:last-child { padding-bottom: 0; }

.step__index {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--green);
  background: var(--green-dim);
  border: 1px solid rgba(90,170,110,0.25);
  border-radius: 50%;
  width: 42px; height: 42px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
  z-index: 1;
}
.step__content h4 {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--accent);
  margin-bottom: 0.3rem;
}
.step__content p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
}
.step__connector {
  position: absolute;
  left: 21px;
  top: 48px;
  bottom: 0;
  width: 1px;
  background: var(--border);
}

/* ═══════════════════════════════════════
   COLLABORATIONS
═══════════════════════════════════════ */
.collaborations {
  padding: 8rem 0;
  background: var(--bg);
}

.collab__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: start;
}
.collab__title { font-size: clamp(1.6rem, 3vw, 2.4rem); }
.collab__text {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: 2rem;
}
.collab__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 2rem;
}
.tag {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green);
  background: var(--green-dim);
  border: 1px solid rgba(90,170,110,0.2);
  padding: 0.35rem 0.8rem;
  border-radius: 100px;
}

/* ═══════════════════════════════════════
   CONTACT
═══════════════════════════════════════ */
.contact {
  padding: 8rem 0;
  background: var(--bg-3);
  border-top: 1px solid var(--border);
}
.contact__inner {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 6rem;
  align-items: start;
}
.contact__info {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: 2rem;
}
.contact__details { display: flex; flex-direction: column; gap: 1rem; }
.contact__detail {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: var(--text-muted);
  font-size: 0.85rem;
}
.contact__detail svg { width: 16px; height: 16px; color: var(--green); flex-shrink: 0; }

/* ── FORM ── */
.form { display: flex; flex-direction: column; gap: 1.2rem; }
.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-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.form__field input,
.form__field select,
.form__field textarea {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.85rem 1rem;
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.3s, background 0.3s;
  width: 100%;
  appearance: none;
}
.form__field input:focus,
.form__field select:focus,
.form__field textarea:focus {
  border-color: var(--green);
  background: var(--surface-2);
}
.form__field input::placeholder,
.form__field textarea::placeholder { color: var(--text-dim); }
.form__field select { cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%235aaa6e' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; }
.form__field select option { background: var(--bg); }
.form__field textarea { resize: vertical; min-height: 120px; }

.form__success {
  display: none;
  padding: 1rem;
  background: var(--green-dim);
  border: 1px solid var(--green);
  border-radius: var(--radius);
  color: var(--green-light);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  text-align: center;
}
.form__success.show { display: block; }

/* ═══════════════════════════════════════
   FOOTER
═══════════════════════════════════════ */
.footer {
  padding: 3rem 0;
  background: var(--bg);
  border-top: 1px solid var(--border);
}
.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}
.footer__brand p {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  margin-top: 0.5rem;
}
.footer__links {
  display: flex;
  gap: 2rem;
}
.footer__links a {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.footer__links a:hover { color: var(--green-light); }
.footer__copy {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  color: var(--text-dim);
}

/* ═══════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════ */
@media (max-width: 900px) {
  .nav { padding: 1.2rem 1.5rem; }
  .nav.scrolled { padding: 1rem 1.5rem; }
  .nav__links { display: none; }
  .nav__burger { display: flex; }

  .hero { padding: 7rem 1.5rem 4rem; }
  .hero__stats {
    flex-wrap: wrap;
    gap: 1rem;
    padding: 1.5rem;
  }
  .stat { padding: 0 1rem; }
  .stat__divider { display: none; }
  .hero__scroll { display: none; }

  .vision-band { padding: 2rem 1.5rem; }
  .vision-band__inner { flex-direction: column; gap: 1rem; }

  .expertise { padding: 5rem 0; }
  .pillars { grid-template-columns: 1fr; }

  .filiere { padding: 5rem 0; }
  .filiere__inner { grid-template-columns: 1fr; gap: 3rem; }

  .collaborations { padding: 5rem 0; }
  .collab__inner { grid-template-columns: 1fr; gap: 3rem; }

  .contact { padding: 5rem 0; }
  .contact__inner { grid-template-columns: 1fr; gap: 3rem; }
  .form__row { grid-template-columns: 1fr; }

  .footer__inner { flex-direction: column; text-align: center; }
  .footer__links { flex-wrap: wrap; justify-content: center; }

  .section-header { margin-bottom: 3rem; }
}

@media (max-width: 480px) {
  h1 { font-size: 2.4rem; }
  h2 { font-size: 1.8rem; }
  .hero__actions { flex-direction: column; }
  .btn { justify-content: center; }
}
