/* ============================================================
   Rhodiu Laboratory — Main Stylesheet
   Premium Scientific Laboratory Design
   ============================================================ */

/* ─── CSS Variables ─────────────────────────────────────────── */
:root {
  --primary:        #0a2540;
  --primary-light:  #0d3060;
  --accent:         #00d4aa;
  --accent-dark:    #00a88a;
  --secondary:      #1a73e8;
  --warning:        #f59e0b;
  --danger:         #ef4444;

  /* Dark theme defaults */
  --bg:             #060d1a;
  --bg-2:           #0a1628;
  --bg-3:           #0f1f3a;
  --bg-card:        rgba(15, 31, 58, 0.8);
  --border:         rgba(0, 212, 170, 0.12);
  --border-strong:  rgba(0, 212, 170, 0.25);
  --text:           #e2e8f0;
  --text-muted:     #94a3b8;
  --text-dim:       #64748b;

  /* Typography */
  --font-display: 'Syne', sans-serif;
  --font-body:    'Space Grotesk', sans-serif;
  --font-mono:    'JetBrains Mono', monospace;

  /* Spacing */
  --section-py: 100px;
  --nav-height: 80px;

  /* Transitions */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0, 0, 0.2, 1);
  --duration: 0.3s;

  /* Radius */
  --radius-sm: 6px;
  --radius:    12px;
  --radius-lg: 20px;
  --radius-xl: 32px;

  /* Shadows */
  --shadow:    0 4px 24px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 8px 48px rgba(0, 0, 0, 0.5);
  --glow:      0 0 30px rgba(0, 212, 170, 0.2);
  --glow-lg:   0 0 60px rgba(0, 212, 170, 0.15);
}

/* Light Mode */
[data-theme="light"], .light-mode {
  --bg:       #f0f4f8;
  --bg-2:     #ffffff;
  --bg-3:     #e8f0fe;
  --bg-card:  rgba(255, 255, 255, 0.9);
  --border:   rgba(10, 37, 64, 0.1);
  --border-strong: rgba(10, 37, 64, 0.2);
  --text:     #0a2540;
  --text-muted: #4a6580;
  --text-dim:   #7a9ab8;
  --shadow:   0 4px 24px rgba(10, 37, 64, 0.08);
  --shadow-lg: 0 8px 48px rgba(10, 37, 64, 0.12);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease);
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-2); }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 3px; }

/* Selection */
::selection { background: rgba(0, 212, 170, 0.25); color: var(--text); }

a { color: var(--accent); text-decoration: none; transition: color var(--duration) var(--ease); }
a:hover { color: var(--accent-dark); }

img { max-width: 100%; height: auto; display: block; }

/* ─── Typography ────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
}

.display-heading {
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.section-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.section-label::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 600px;
  line-height: 1.8;
}

/* ─── Page Loader ───────────────────────────────────────────── */
.page-loader {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s var(--ease), visibility 0.5s var(--ease);
}

.page-loader.loaded {
  opacity: 0;
  visibility: hidden;
}

.loader-inner { text-align: center; }

.loader-logo {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 24px;
  animation: logoPulse 1.5s ease-in-out infinite;
}

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

.loader-bar {
  width: 200px;
  height: 3px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
  margin: 0 auto;
}

.loader-progress {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--secondary));
  border-radius: 2px;
  animation: loadBar 1.5s ease-in-out infinite;
}

@keyframes loadBar {
  0%   { width: 0%; }
  80%  { width: 100%; }
  100% { width: 100%; }
}

/* ─── Flash Messages ────────────────────────────────────────── */
.flash-container {
  position: fixed;
  top: 100px;
  right: 20px;
  z-index: 8000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 380px;
  width: calc(100vw - 40px);
}

.flash-message {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  border-radius: var(--radius);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  animation: flashIn 0.4s var(--ease-out);
  background: var(--bg-card);
  box-shadow: var(--shadow-lg);
}

@keyframes flashIn {
  from { opacity: 0; transform: translateX(40px); }
  to   { opacity: 1; transform: translateX(0); }
}

.flash-success { border-color: rgba(0, 212, 170, 0.4); }
.flash-success svg { color: var(--accent); }
.flash-error { border-color: rgba(239, 68, 68, 0.4); }
.flash-error svg { color: var(--danger); }

.flash-close {
  margin-left: auto;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  padding: 0;
  line-height: 1;
}

/* ─── Navigation ────────────────────────────────────────────── */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  z-index: 1000;
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease), backdrop-filter 0.4s;
  padding: 0 16px;
}

.site-nav.scrolled {
  background: rgba(6, 13, 26, 0.9);
  backdrop-filter: blur(20px) saturate(180%);
  box-shadow: 0 1px 0 var(--border), var(--shadow);
}

.light-mode .site-nav.scrolled {
  background: rgba(255, 255, 255, 0.92);
}

.site-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--secondary) 100%);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
  color: #fff;
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--text);
  letter-spacing: -0.01em;
}

.brand-tag {
  font-family: var(--font-mono);
  font-size: 0.55rem;
  letter-spacing: 0.2em;
  color: var(--accent);
  text-transform: uppercase;
}

.site-nav .nav-link {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.875rem;
  color: var(--text-muted);
  padding: 6px 12px !important;
  border-radius: var(--radius-sm);
  transition: color var(--duration) var(--ease), background var(--duration) var(--ease);
  position: relative;
}

.site-nav .nav-link:hover,
.site-nav .nav-link.active {
  color: var(--text);
  background: var(--border);
}

/* Dropdown */
.site-nav .dropdown-menu {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 8px;
  min-width: 220px;
  margin-top: 8px;
}

.site-nav .dropdown-item {
  color: var(--text-muted);
  font-size: 0.875rem;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  transition: all var(--duration) var(--ease);
}

.site-nav .dropdown-item:hover {
  background: var(--border);
  color: var(--accent);
}

/* Nav CTA Button */
.btn-accent {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  color: var(--primary) !important;
  font-weight: 600;
  font-size: 0.85rem;
  padding: 8px 20px;
  border-radius: 50px;
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: all var(--duration) var(--ease);
  box-shadow: 0 4px 16px rgba(0, 212, 170, 0.3);
}

.btn-accent:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0, 212, 170, 0.45);
  color: var(--primary) !important;
}

.btn-accent svg { width: 15px; height: 15px; }

/* Theme Toggle */
.theme-toggle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--border);
  border: 1px solid var(--border-strong);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--duration) var(--ease);
  padding: 0;
}

.theme-toggle:hover { color: var(--accent); border-color: var(--accent); }
.theme-toggle svg { width: 16px; height: 16px; }

.dark-mode .sun-icon  { display: block; }
.dark-mode .moon-icon { display: none; }
.light-mode .sun-icon  { display: none; }
.light-mode .moon-icon { display: block; }

/* Mobile Nav Toggle */
.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  background: var(--border);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  cursor: pointer;
  padding: 10px;
  transition: background var(--duration);
}

.toggle-bar {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.3s;
}

/* ─── Hero Section ──────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  padding: calc(var(--nav-height) + 60px) 0 80px;
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 20% 50%, rgba(0, 212, 170, 0.08) 0%, transparent 60%),
              radial-gradient(ellipse at 80% 20%, rgba(26, 115, 232, 0.08) 0%, transparent 60%),
              var(--bg);
}

/* Animated grid */
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 212, 170, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 212, 170, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, rgba(0,0,0,0.5) 0%, transparent 70%);
}

/* Floating orbs */
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.35;
  animation: orbFloat 8s ease-in-out infinite;
}

.hero-orb-1 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
  top: -150px; right: -100px;
  animation-delay: 0s;
}

.hero-orb-2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, var(--secondary) 0%, transparent 70%);
  bottom: -100px; left: -50px;
  animation-delay: -4s;
}

@keyframes orbFloat {
  0%, 100% { transform: translateY(0) scale(1); }
  50%       { transform: translateY(-30px) scale(1.05); }
}

.hero-content { position: relative; z-index: 2; }

.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero-eyebrow::before {
  content: '';
  display: inline-block;
  width: 32px;
  height: 2px;
  background: var(--accent);
}

.hero-title {
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 28px;
}

.hero-title .accent-text {
  background: linear-gradient(135deg, var(--accent) 0%, var(--secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 560px;
  line-height: 1.85;
  margin-bottom: 40px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
}

.btn-primary-custom {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  color: #0a2540 !important;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 14px 32px;
  border-radius: 50px;
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s var(--ease);
  box-shadow: 0 4px 20px rgba(0, 212, 170, 0.35);
}

.btn-primary-custom:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 36px rgba(0, 212, 170, 0.5);
}

.btn-outline-custom {
  background: transparent;
  color: var(--text) !important;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 13px 30px;
  border-radius: 50px;
  border: 1px solid var(--border-strong);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s var(--ease);
}

.btn-outline-custom:hover {
  border-color: var(--accent);
  color: var(--accent) !important;
  background: rgba(0, 212, 170, 0.06);
}

.hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 56px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}

.hero-stat-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hero-stat-value {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
}

.hero-stat-label {
  font-size: 0.75rem;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-dim);
}

/* Hero Visual */
.hero-visual {
  position: relative;
  z-index: 2;
}

.hero-card-main {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow-lg), var(--glow);
  animation: heroCardFloat 6s ease-in-out infinite;
}

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

.hero-card-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(0, 212, 170, 0.12);
  border: 1px solid rgba(0, 212, 170, 0.3);
  color: var(--accent);
  font-size: 0.7rem;
  font-family: var(--font-mono);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 50px;
  margin-bottom: 20px;
}

.hero-card-badge .pulse-dot {
  width: 7px;
  height: 7px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulseDot 2s ease-in-out infinite;
}

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

.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.tech-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 4px 10px;
  border-radius: 4px;
  background: var(--border);
  color: var(--text-muted);
  border: 1px solid var(--border-strong);
}

.floating-badge {
  position: absolute;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 18px;
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
}

.floating-badge-1 {
  top: -20px; left: -30px;
  animation: floatBadge1 5s ease-in-out infinite;
}

.floating-badge-2 {
  bottom: -20px; right: -20px;
  animation: floatBadge2 6s ease-in-out infinite;
}

@keyframes floatBadge1 {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50%       { transform: translateY(-8px) rotate(-2deg); }
}

@keyframes floatBadge2 {
  0%, 100% { transform: translateY(0) rotate(2deg); }
  50%       { transform: translateY(-10px) rotate(2deg); }
}

/* ─── Sections ──────────────────────────────────────────────── */
section {
  padding: var(--section-py) 0;
}

.section-header { margin-bottom: 60px; }
.section-header.text-center .section-label { justify-content: center; }
.section-header.text-center .section-subtitle { margin: 16px auto 0; }

/* ─── Stats Section ─────────────────────────────────────────── */
.stats-section {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 60px 0;
}

.stat-card {
  text-align: center;
  padding: 32px 24px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-card);
  transition: all 0.3s var(--ease);
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,212,170,0.05) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s;
}

.stat-card:hover { border-color: var(--accent); transform: translateY(-4px); box-shadow: var(--glow); }
.stat-card:hover::before { opacity: 1; }

.stat-icon {
  width: 52px;
  height: 52px;
  background: rgba(0, 212, 170, 0.1);
  border: 1px solid rgba(0, 212, 170, 0.2);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: var(--accent);
}

.stat-icon svg { width: 24px; height: 24px; }

.stat-value {
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 8px;
}

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

/* ─── Service Cards ─────────────────────────────────────────── */
.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: all 0.4s var(--ease);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.service-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--secondary));
  transform: scaleX(0);
  transition: transform 0.4s var(--ease);
}

.service-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg), var(--glow-lg);
}

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

.service-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, rgba(0,212,170,0.15) 0%, rgba(26,115,232,0.15) 100%);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  margin-bottom: 24px;
  transition: all 0.3s var(--ease);
}

.service-card:hover .service-icon {
  background: linear-gradient(135deg, var(--accent), var(--secondary));
  color: #fff;
  box-shadow: var(--glow);
}

.service-icon svg { width: 28px; height: 28px; }

.service-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.service-desc {
  color: var(--text-muted);
  font-size: 0.925rem;
  line-height: 1.75;
  flex: 1;
  margin-bottom: 24px;
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  font-weight: 600;
  font-size: 0.875rem;
  transition: gap 0.2s var(--ease);
}

.service-link:hover { gap: 14px; }

/* ─── Equipment Cards ───────────────────────────────────────── */
.equipment-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.3s var(--ease);
  height: 100%;
}

.equipment-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.equipment-card-img {
  height: 200px;
  background: linear-gradient(135deg, var(--bg-3) 0%, var(--bg-2) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.equipment-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.equipment-placeholder {
  color: var(--accent);
  opacity: 0.4;
}

.equipment-placeholder svg { width: 64px; height: 64px; }

.equipment-card-body { padding: 24px; }
.equipment-card-category {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}

.equipment-card-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.4;
}

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

/* ─── Technique Cards ───────────────────────────────────────── */
.technique-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: center;
  transition: all 0.3s var(--ease);
  position: relative;
  overflow: hidden;
}

.technique-acronym {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 8px;
}

.technique-name {
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--text-muted);
  line-height: 1.4;
}

.technique-card:hover {
  border-color: var(--accent);
  transform: translateY(-6px);
  box-shadow: var(--glow);
}

/* ─── Mineral Cards ─────────────────────────────────────────── */
.mineral-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 20px;
  text-align: center;
  transition: all 0.3s var(--ease);
  cursor: pointer;
}

.mineral-symbol {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 6px;
}

.mineral-name {
  font-size: 0.8rem;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

.mineral-card:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}

/* ─── Testimonials ──────────────────────────────────────────── */
.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  position: relative;
  height: 100%;
}

.testimonial-quote {
  font-size: 4rem;
  color: var(--accent);
  line-height: 0.5;
  margin-bottom: 24px;
  font-family: Georgia, serif;
  opacity: 0.5;
}

.testimonial-text {
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--text-muted);
  margin-bottom: 28px;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 14px;
}

.testimonial-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-family: var(--font-display);
  color: #fff;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.testimonial-author img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}

.testimonial-name { font-weight: 700; font-size: 0.95rem; margin-bottom: 2px; }
.testimonial-role { font-size: 0.78rem; color: var(--text-dim); font-family: var(--font-mono); }

.stars { display: flex; gap: 3px; color: var(--warning); margin-bottom: 16px; }
.stars svg { width: 14px; height: 14px; fill: currentColor; }

/* ─── Gallery Grid ──────────────────────────────────────────── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: pointer;
  background: var(--bg-3);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}

.gallery-item:hover img { transform: scale(1.08); }

.gallery-item-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 20px;
}

.gallery-item:hover .gallery-item-overlay { opacity: 1; }

.gallery-item-zoom {
  width: 44px;
  height: 44px;
  background: rgba(0, 212, 170, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  transition: transform 0.3s var(--ease);
}

.gallery-item:hover .gallery-item-zoom { transform: translate(-50%, -50%) scale(1); }

/* ─── Filter Tabs ───────────────────────────────────────────── */
.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 36px;
}

.filter-tab {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 7px 18px;
  border-radius: 50px;
  background: var(--border);
  border: 1px solid var(--border-strong);
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s var(--ease);
}

.filter-tab:hover,
.filter-tab.active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--primary);
  font-weight: 600;
}

/* ─── Contact Section ───────────────────────────────────────── */
.contact-form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 48px 40px;
  backdrop-filter: blur(20px);
}

.form-group { margin-bottom: 24px; }

.form-label {
  display: block;
  font-size: 0.8rem;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.form-control-custom {
  width: 100%;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 16px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
  outline: none;
}

.form-control-custom:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0, 212, 170, 0.12);
}

.form-control-custom::placeholder { color: var(--text-dim); }

textarea.form-control-custom { resize: vertical; min-height: 140px; }

/* ─── Info Boxes ────────────────────────────────────────────── */
.info-box {
  display: flex;
  gap: 18px;
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 16px;
  transition: all 0.3s var(--ease);
}

.info-box:hover { border-color: var(--accent); }

.info-box-icon {
  width: 48px;
  height: 48px;
  background: rgba(0, 212, 170, 0.1);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
}

.info-box-icon svg { width: 22px; height: 22px; }

.info-box-label {
  font-size: 0.72rem;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  margin-bottom: 4px;
}

.info-box-value {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
}

/* ─── CTA Section ───────────────────────────────────────────── */
.cta-section {
  background: linear-gradient(135deg, var(--primary) 0%, #0d3060 50%, #0a2540 100%);
  padding: var(--section-py) 0;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(0, 212, 170, 0.15) 0%, transparent 70%);
}

.cta-section::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(26, 115, 232, 0.12) 0%, transparent 70%);
}

/* ─── Newsletter Section ────────────────────────────────────── */
.newsletter-section {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 80px 0;
}

.newsletter-form {
  display: flex;
  gap: 12px;
  max-width: 500px;
  margin: 32px auto 0;
}

.newsletter-input {
  flex: 1;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: 13px 24px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s;
}

.newsletter-input:focus { border-color: var(--accent); }
.newsletter-input::placeholder { color: var(--text-dim); }

.newsletter-mini {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.newsletter-mini .form-control {
  flex: 1;
  background: var(--bg-3);
  border-color: var(--border);
  color: var(--text);
  border-radius: 50px;
  padding: 8px 16px;
}

.newsletter-mini .btn-accent { padding: 8px 14px; }

.newsletter-msg {
  font-size: 0.82rem;
  margin-top: 8px;
  min-height: 20px;
}

/* ─── Team Cards ────────────────────────────────────────────── */
.team-card {
  text-align: center;
  transition: all 0.3s var(--ease);
}

.team-photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 20px;
  border: 3px solid var(--border);
  transition: border-color 0.3s;
}

.team-photo-placeholder {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2rem;
  color: #fff;
  margin: 0 auto 20px;
}

.team-card:hover .team-photo { border-color: var(--accent); }
.team-name { font-size: 1rem; font-weight: 700; margin-bottom: 4px; }
.team-position { font-size: 0.8rem; color: var(--accent); font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 10px; }
.team-bio { font-size: 0.87rem; color: var(--text-muted); line-height: 1.7; }

/* ─── Back to Top ───────────────────────────────────────────── */
.back-to-top {
  position: fixed;
  bottom: 90px;
  right: 24px;
  width: 44px;
  height: 44px;
  background: var(--accent);
  color: var(--primary);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 500;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s var(--ease);
  box-shadow: 0 4px 16px rgba(0, 212, 170, 0.4);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover { transform: translateY(-4px); }
.back-to-top svg { width: 20px; height: 20px; }

/* ─── Sticky CTA (Mobile) ───────────────────────────────────── */
.sticky-cta {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 500;
}

.sticky-cta-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  box-shadow: var(--shadow);
  transition: all 0.3s;
  text-decoration: none;
  backdrop-filter: blur(10px);
}

.sticky-cta-btn.primary {
  background: var(--accent);
  color: var(--primary);
  border-color: var(--accent);
}

.sticky-cta-btn svg { width: 20px; height: 20px; }

/* ─── Footer ────────────────────────────────────────────────── */
.site-footer {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
}

.footer-top { padding: 80px 0 60px; }

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.footer-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 24px;
}

.footer-social {
  display: flex;
  gap: 12px;
}

.footer-social a {
  width: 38px;
  height: 38px;
  background: var(--border);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: all 0.2s;
}

.footer-social a:hover { background: var(--accent); color: var(--primary); border-color: var(--accent); }
.footer-social svg { width: 16px; height: 16px; }

.footer-heading {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

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

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

.footer-contact {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.footer-contact svg { width: 16px; height: 16px; color: var(--accent); flex-shrink: 0; margin-top: 3px; }
.footer-contact a { color: var(--text-muted); }
.footer-contact a:hover { color: var(--accent); }

.footer-newsletter p { font-size: 0.82rem; color: var(--text-dim); margin-top: 24px; margin-bottom: 8px; }

.footer-bottom {
  padding: 24px 0;
  border-top: 1px solid var(--border);
}

.copyright { font-size: 0.82rem; color: var(--text-dim); margin: 0; }

.footer-bottom a {
  font-size: 0.82rem;
  color: var(--text-dim);
  transition: color 0.2s;
}

.footer-bottom a:hover { color: var(--accent); }

/* ─── Breadcrumbs ───────────────────────────────────────────── */
.breadcrumbs {
  padding: calc(var(--nav-height) + 20px) 0 20px;
  font-size: 0.8rem;
  font-family: var(--font-mono);
}

.breadcrumbs a { color: var(--text-muted); }
.breadcrumbs .current { color: var(--accent); }
.breadcrumbs span { color: var(--text-dim); margin: 0 8px; }

/* ─── Page Header ───────────────────────────────────────────── */
.page-header {
  padding: calc(var(--nav-height) + 60px) 0 70px;
  background: var(--bg-2);
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at top right, rgba(0, 212, 170, 0.06) 0%, transparent 60%);
}

/* ─── Lightbox ──────────────────────────────────────────────── */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s var(--ease);
}

.lightbox.open { opacity: 1; visibility: visible; }

.lightbox-img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: var(--radius);
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  cursor: pointer;
}

/* ─── Misc Utility ──────────────────────────────────────────── */
.gradient-text {
  background: linear-gradient(135deg, var(--accent) 0%, var(--secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.divider-line {
  border: none;
  height: 1px;
  background: var(--border);
  margin: 60px 0;
}

.badge-accent {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(0, 212, 170, 0.1);
  border: 1px solid rgba(0, 212, 170, 0.25);
  color: var(--accent);
  font-size: 0.72rem;
  font-family: var(--font-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 50px;
}

.sticky-top-offset { padding-top: var(--nav-height); }

/* ─── Swiper Overrides ──────────────────────────────────────── */
.swiper-pagination-bullet { background: var(--border-strong); opacity: 1; }
.swiper-pagination-bullet-active { background: var(--accent); }
.swiper-button-next, .swiper-button-prev {
  color: var(--accent);
  background: var(--bg-card);
  border: 1px solid var(--border);
  width: 44px; height: 44px;
  border-radius: 50%;
  transition: all 0.2s;
}
.swiper-button-next::after, .swiper-button-prev::after { font-size: 14px; }

/* ─── Responsive ────────────────────────────────────────────── */
@media (max-width: 991px) {
  :root { --section-py: 70px; }

  .site-nav .navbar-collapse {
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    margin-top: 16px;
    box-shadow: var(--shadow-lg);
  }

  .hero-stats { gap: 24px; flex-wrap: wrap; }
  .hero-stat-value { font-size: 1.6rem; }

  .newsletter-form { flex-direction: column; }
}

@media (max-width: 767px) {
  :root { --section-py: 56px; --nav-height: 70px; }

  .contact-form { padding: 32px 24px; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .btn-primary-custom, .btn-outline-custom { width: 100%; justify-content: center; }
  .footer-top { padding: 56px 0 40px; }
  .hero { min-height: auto; padding-bottom: 60px; }

  .floating-badge { display: none; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 2.2rem; }
  .section-title { font-size: 1.75rem; }
}
