/* ==============================================
   ALTAGENIX — DESIGN SYSTEM
   Inspired by blissagency.it
   Premium Dark Aesthetic, Genomics Theme
   ============================================== */

:root {
  /* Colors */
  --black: #050505;
  --near-black: #0c0c0c;
  --dark: #121212;
  --dark-2: #181818;
  --dark-3: #202020;
  
  --white: #ffffff;
  --white-dim: #e0e0e0;
  --white-muted: #a0a0a0;
  --white-faint: #606060;
  --white-ghost: rgba(255,255,255,0.03);
  
  --accent: #4f6ef7; /* Bliss-like Blue */
  --accent-glow: rgba(79, 110, 247, 0.3);
  --border: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.2);
  
  /* Fonts */
  --font-main: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  /* Transitions */
  --transition: 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  --transition-fast: 0.3s ease;
}

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

html, body {
  background: var(--black);
  color: var(--white);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ===== GRAIN OVERLAY ===== */
.grain-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.04; /* Very subtle */
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* ===== GRID OVERLAY ===== */
.grid-overlay {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(to right, var(--border) 1px, transparent 1px),
    linear-gradient(to bottom, var(--border) 1px, transparent 1px);
  background-size: 80px 80px; /* Bigger grid for premium feel */
  mask-image: radial-gradient(circle at center, black 40%, transparent 90%);
  pointer-events: none;
}

ul { list-style: none; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; }

.container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 40px;
}

.section {
  padding: 140px 0;
  position: relative;
}

.section-dark {
  background: var(--near-black);
}

/* ===== NAV ===== */
#navbar {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 94px;
  z-index: 1000;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
}

#navbar.scrolled {
  background: rgba(5, 5, 5, 0.85);
  backdrop-filter: blur(20px);
  height: 84px;
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo, .footer-logo, .contact-logo {
  width: auto;
  object-fit: contain;
  background: transparent;
  filter: drop-shadow(0 0 8px rgba(79, 110, 247, 0.16));
  transition: all var(--transition-fast);
  display: block;
}

.nav-logo { height: 72px; }
.footer-logo { height: 96px; margin-bottom: 30px; }
.contact-logo { height: 148px; width: auto; margin-bottom: 40px; }

.nav-logo:hover, .footer-logo:hover, .contact-logo:hover {
  filter: drop-shadow(0 0 14px rgba(79, 110, 247, 0.24));
  transform: scale(1.04);
}

.nav-links {
  display: flex;
  gap: 40px;
  align-items: center;
}

.nav-item {
  font-family: var(--font-main);
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.25em; /* Increased letter-spacing */
  color: var(--white-muted);
  position: relative;
  transition: color var(--transition-fast);
}

/* Animated underline for hover */
.nav-item::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.nav-item:hover { color: var(--white); }
.nav-item:hover::after { width: 100%; }

.nav-cta {
  font-family: var(--font-main);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  background: var(--accent);
  color: var(--white);
  padding: 12px 24px;
  border-radius: 100px;
  transition: all var(--transition-fast);
}

.nav-cta:hover {
  background: var(--white);
  color: var(--black);
  transform: scale(1.05);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none; border: none;
  cursor: pointer;
  z-index: 1001;
}

.hamburger span {
  width: 28px;
  height: 1px;
  background: var(--white);
  transition: var(--transition-fast);
}

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

.hero-bg-visual {
  position: absolute;
  inset: 0;
  background: url('images/hero_dna.png') center/cover no-repeat;
  opacity: 0.5;
  pointer-events: none;
}

.dna-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.8;
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 10;
  padding: 0 40px;
}

.hero-eyebrow {
  font-family: var(--font-main);
  font-size: 11px;
  letter-spacing: 0.5em; /* Extreme letter-spacing for premium label */
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 30px;
  font-weight: 600;
}

.hero-title {
  font-family: var(--font-main);
  font-size: clamp(50px, 9vw, 120px);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  margin-bottom: 40px;
}

.hero-accent {
  color: transparent;
  -webkit-text-stroke: 1px var(--white);
  opacity: 0.9;
}

.hero-tagline {
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--white-muted);
  max-width: 500px;
  border-left: 1px solid var(--accent);
  padding-left: 20px;
}

.hero-bottom {
  position: absolute;
  bottom: 40px;
  left: 0; width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 0 40px;
  z-index: 10;
}

.hero-coords span, .hero-scroll span {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--white-faint);
  display: block;
}

.scroll-line {
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  margin-top: 10px;
}

/* ===== TICKER ===== */
.ticker-wrap {
  background: var(--dark-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  padding: 20px 0;
}

.ticker {
  display: flex;
  gap: 60px;
  white-space: nowrap;
  animation: tickerRun 20s linear infinite;
}

@keyframes tickerRun {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.ticker span {
  font-family: var(--font-main);
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--white-muted);
}

.ticker .dot { color: var(--accent); }

/* ===== SECTION HEADERS ===== */
.section-eyebrow {
  font-family: var(--font-main);
  font-size: 11px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 30px;
}

.section-title {
  font-family: var(--font-main);
  font-size: clamp(40px, 6vw, 80px);
  font-weight: 800;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  margin-bottom: 80px;
}

.section-title-left {
  font-family: var(--font-main);
  font-size: clamp(30px, 4.5vw, 60px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 80px;
}

.accent-dot { color: var(--accent); }

/* ===== ABOUT GRID ===== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 120px;
}

.about-headline {
  font-family: var(--font-main);
  font-size: 28px;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 30px;
}

.about-body {
  font-size: 16px;
  color: var(--white-muted);
  margin-bottom: 40px;
  max-width: 500px;
}

.btn-outline {
  display: inline-block;
  padding: 16px 32px;
  border: 1px solid var(--border-hover);
  font-family: var(--font-main);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  transition: all var(--transition-fast);
}

.btn-outline:hover {
  background: var(--white);
  color: var(--black);
}

.step-item {
  padding: 30px 0;
  border-bottom: 1px solid var(--border);
  position: relative;
  transition: padding-left 0.4s var(--transition);
}

.step-item:hover { padding-left: 20px; }
.step-item h3 { font-family: var(--font-main); font-size: 24px; margin-bottom: 10px; }
.step-num { font-family: var(--font-main); color: var(--accent); font-weight: 700; margin-right: 20px; }
.step-item small { letter-spacing: 0.2em; color: var(--white-muted); }
.step-item ul { margin-top: 15px; font-size: 13px; color: var(--white-faint); }


.identity-block {
  grid-column: 1 / -1;
  width: 100%;
  margin-top: 120px;
  padding-top: 56px;
  border-top: 1px solid var(--border);
}

.identity-header {
  max-width: 980px;
  margin-bottom: 46px;
}

.identity-header-main { max-width: 1180px; }

.identity-title {
  font-family: var(--font-main);
  font-size: clamp(34px, 5vw, 72px);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.identity-block-mvv { margin-top: 72px; }

.identity-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(360px, 1fr));
  gap: 32px;
  align-items: stretch;
}

.identity-grid-mvv {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.identity-card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.015));
  border: 1px solid var(--border);
  padding: 36px 34px;
  min-height: 100%;
  height: 100%;
  transition: transform var(--transition-fast), border-color var(--transition-fast), background var(--transition-fast);
}

.identity-card-hero {
  min-height: min(64vh, 560px);
  padding: clamp(34px, 5vw, 72px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-color: rgba(255,255,255,0.18);
  background:
    radial-gradient(circle at 18% 20%, rgba(57, 91, 255, 0.22), transparent 32%),
    linear-gradient(135deg, rgba(255,255,255,0.055), rgba(255,255,255,0.014));
}

.identity-card-hero p {
  max-width: 980px;
  font-size: clamp(18px, 2vw, 28px);
  line-height: 1.75;
  color: var(--white);
}

.identity-card-num {
  position: absolute;
  top: 24px;
  right: 28px;
  font-family: var(--font-main);
  font-size: clamp(44px, 7vw, 118px);
  font-weight: 800;
  line-height: 1;
  color: rgba(255,255,255,0.045);
  pointer-events: none;
}

.identity-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover);
  background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
}

.identity-label {
  display: inline-block;
  font-family: var(--font-main);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}

.identity-card p,
.values-list {
  font-size: 15px;
  line-height: 1.9;
  color: var(--white-dim);
}

.values-list {
  margin: 0;
  padding-left: 18px;
}

.values-list li {
  margin-bottom: 14px;
}

.values-list li:last-child {
  margin-bottom: 0;
}

.values-list strong {
  color: var(--white);
}

/* ===== SHOWREEL ===== */
.section-video {
  height: 90vh;
  position: relative;
  overflow: hidden;
  background: var(--black);
}

.showreel-canvas {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
}

.video-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(5,5,5,0.9) 0%, transparent 70%);
  display: flex;
  align-items: center;
  padding: 0 80px;
}

.video-title {
  font-family: var(--font-main);
  font-size: clamp(40px, 7vw, 100px);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.04em;
  margin-bottom: 30px;
}

.video-sub {
  font-size: 14px;
  color: var(--white-muted);
  max-width: 440px;
  margin-bottom: 50px;
}

.video-stats { display: flex; gap: 60px; }
.vs-num { font-family: var(--font-main); font-size: 40px; font-weight: 800; color: var(--accent); }
.vs-label { font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--white-faint); }

/* ===== CARDS ===== */
.stories-grid, .research-cards, .health-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
}

.research-cards { grid-template-columns: repeat(4, 1fr); }
.health-grid { grid-template-columns: repeat(4, 1fr); }

.story-card, .r-card, .health-card {
  background: var(--black);
  padding: 50px 40px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.story-card:hover, .r-card:hover, .health-card:hover {
  background: var(--dark-3);
  transform: translateY(-5px);
}

.story-img { height: 260px; background: var(--dark); margin-bottom: 30px; border-radius: 4px; }
.story-img-1 { background: url('images/story_pathogens.png') center/cover; }
.story-img-2 { background: url('images/story_scientist.png') center/cover; }
.story-img-3 { background: url('images/story_startup.png') center/cover; }

.r-icon, .health-num { font-size: 30px; color: var(--accent); margin-bottom: 20px; }

h4 { font-family: var(--font-main); font-size: 18px; font-weight: 700; margin-bottom: 15px; }

/* ===== FUNDING ===== */
.funding-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 100px; align-items: center; }
.funding-visual { position: relative; height: 500px; background: url('images/funding_research.png') center/cover; border-radius: 8px; overflow: hidden; padding: 40px; display: flex; flex-direction: column; justify-content: flex-end; }
.funding-visual::before { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, var(--black), transparent); }
.funding-stat { position: relative; z-index: 10; padding: 20px 0; border-bottom: 1px solid rgba(255,255,255,0.1); }
.stat-num { font-family: var(--font-main); font-size: 60px; font-weight: 800; color: var(--white); }

/* ===== CONTACT ===== */
.contact-inner { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 100px; }
.contact-form { display: grid; gap: 30px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.form-group label { display: block; font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--white-faint); margin-bottom: 12px; }
.form-group input, .form-group textarea { width: 100%; background: none; border: none; border-bottom: 1px solid var(--border); color: var(--white); padding: 15px 0; outline: none; font-size: 15px; transition: border-color 0.4s; }
.form-group input:focus, .form-group textarea:focus { border-color: var(--accent); }
.btn-submit { background: var(--white); color: var(--black); border: none; padding: 20px 40px; font-family: var(--font-main); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.2em; cursor: pointer; transition: all 0.4s; }
.btn-submit:hover { background: var(--accent); color: var(--white); }



/* ===== LOCATION ===== */
.section-location { padding-bottom: 140px; }
.location-header { max-width: 820px; }
.location-grid {
  display: grid;
  grid-template-columns: minmax(320px, 0.85fr) minmax(420px, 1.15fr);
  gap: 34px;
  align-items: stretch;
}
.location-card {
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.015));
  padding: clamp(30px, 4vw, 52px);
  min-height: 420px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.location-card h3 {
  font-family: var(--font-main);
  font-size: clamp(28px, 3.4vw, 52px);
  line-height: 1.05;
  letter-spacing: -0.04em;
  margin-bottom: 24px;
}
.location-card p {
  font-size: 17px;
  line-height: 1.75;
  color: var(--white-muted);
  max-width: 520px;
}
.location-actions { margin-top: 34px; }
.location-map {
  min-height: 420px;
  border: 1px solid var(--border);
  overflow: hidden;
  background: rgba(255,255,255,0.03);
}
.location-map iframe {
  width: 100%;
  height: 100%;
  min-height: 420px;
  border: 0;
  filter: grayscale(1) invert(0.9) contrast(0.9);
}

/* ===== FOOTER ===== */
#footer { background: var(--near-black); padding: 120px 0 60px; border-top: 1px solid var(--border); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.5fr; gap: 60px; margin-bottom: 80px; }

.footer-copy { font-size: 11px; color: var(--white-faint); margin-top: 20px; }
.footer-col h5 {
  font-family: var(--font-main);
  font-size: 10px;
  letter-spacing: 0.35em;
  color: var(--accent);
  margin-bottom: 30px;
  font-weight: 700;
}
.footer-col ul li { margin-bottom: 15px; }
.footer-col ul a { font-size: 14px; color: var(--white-muted); transition: color 0.3s; }
.footer-col ul a:hover { color: var(--white); }
.footer-newsletter-text { font-size: 13px; color: var(--white-muted); margin-bottom: 20px; }
.newsletter-form { display: flex; border-bottom: 1px solid var(--border); }
.newsletter-form input { flex: 1; background: none; border: none; padding: 15px 0; color: var(--white); outline: none; }
.newsletter-form button { background: none; border: none; color: var(--accent); cursor: pointer; font-size: 20px; }

.footer-bottom { border-top: 1px solid var(--border); padding-top: 40px; display: flex; gap: 40px; }
.footer-bottom a { font-size: 11px; color: var(--white-faint); text-transform: uppercase; letter-spacing: 0.1em; transition: color 0.3s; }
.footer-bottom a:hover { color: var(--white); }

/* ===== ANIMATIONS ===== */
.reveal { opacity: 0; transform: translateY(40px); transition: all 1s cubic-bezier(0.22, 1, 0.36, 1); }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* RESPONSIVE */
@media (max-width: 1024px) {
  .about-grid, .funding-inner, .contact-inner, .footer-grid, .identity-grid, .identity-grid-mvv, .location-grid { grid-template-columns: 1fr; gap: 60px; }
  .research-cards, .health-grid { grid-template-columns: repeat(2, 1fr); }
  .stories-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .hamburger { display: flex; }
}

@media (max-width: 768px) {
  .nav-logo { height: 60px; }
  .contact-logo { height: 118px; }
  .footer-logo { height: 82px; }
  .identity-block { margin-top: 80px; padding-top: 40px; }
  .identity-card { padding: 28px 24px; }
  .identity-card-hero { min-height: auto; padding: 34px 26px; }
  .location-card, .location-map, .location-map iframe { min-height: 360px; }
}
