/* ============================================================
   AERO_CORE — main.css
   All custom styles. Elementor Pro loads this via functions.php
   ============================================================ */

/* ── Base reset & body ──────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html.dark body,
body.aerocore-theme {
  background-color: var(--color-background);
  color: var(--color-on-surface);
  font-family: var(--font-body);
  overflow-x: hidden;
}

/* ── Typography helpers ─────────────────────────────────────── */
.font-headline { font-family: var(--font-headline); }
.font-body     { font-family: var(--font-body); }
.font-label    { font-family: var(--font-headline); }

/* ── Colour utilities (mirror Tailwind config) ──────────────── */
.text-primary          { color: var(--color-primary) !important; }
.text-secondary        { color: var(--color-secondary) !important; }
.text-on-surface       { color: var(--color-on-surface) !important; }
.text-on-surface-variant { color: var(--color-on-surface-var) !important; }
.bg-background         { background-color: var(--color-background) !important; }
.bg-surface-container-low    { background-color: var(--color-surface-low) !important; }
.bg-surface-container-lowest { background-color: #000000 !important; }
.bg-surface-container-high   { background-color: var(--color-surface-high) !important; }
.bg-surface-container-highest{ background-color: var(--color-surface-highest) !important; }

/* ── Glass panel ────────────────────────────────────────────── */
.glass-panel {
  background: rgba(38,38,38,0.4);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

/* ── Neon glows ─────────────────────────────────────────────── */
.neon-glow-primary  { box-shadow: 0 0 15px rgba(255,142,125,0.1); }
.neon-glow-secondary{ box-shadow: 0 0 15px rgba(255,215,9,0.1); }

/* ── Grid mesh background ───────────────────────────────────── */
.grid-mesh {
  background-image: radial-gradient(circle at 2px 2px, rgba(255,142,125,0.05) 1px, transparent 0);
  background-size: 40px 40px;
}

/* ── Asymmetric clip ────────────────────────────────────────── */
.asymmetric-clip {
  clip-path: polygon(0 0, 100% 0, 95% 100%, 0% 100%);
}

/* ── Ecosystem cards ────────────────────────────────────────── */
.ecosystem-card {
  transition: all 0.4s cubic-bezier(0.4,0,0.2,1);
  position: relative;
  overflow: hidden;
}
.ecosystem-card:hover {
  transform: translateY(-8px);
  background: rgba(255,255,255,0.05);
  box-shadow: 0 10px 40px -10px rgba(255,142,125,0.2);
}
.ecosystem-card::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,142,125,0.1) 0%, transparent 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
}
.ecosystem-card:hover::before { opacity: 1; }

/* ── Sidebar numbers (vertical nav) ─────────────────────────── */
.sidebar-numbers {
  position: relative;
}
.sidebar-numbers::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 2px;
  background: rgba(255,255,255,0.05);
}

/* ── Active sidebar indicator bar ───────────────────────────── */
.active-sidebar-indicator {
  position: absolute;
  left: -1px;
  width: 4px;
  background: var(--color-primary);
  box-shadow: 0 0 10px var(--color-primary);
  border-radius: 2px;
  transition: top 0.3s ease, height 0.3s ease;
}

/* ── Sidebar nav links ───────────────────────────────────────── */
.sidebar-nav-btn {
  display: block;
  text-decoration: none;
  color: rgba(173,170,170,0.2);
  transition: color 0.3s ease;
  font-family: var(--font-headline);
  font-weight: 700;
  line-height: 1;
  font-size: clamp(0.75rem, 2vw, 1.5rem);
  padding: 4px 0;
}
.sidebar-nav-btn:hover  { color: var(--color-secondary); }
.sidebar-nav-btn.active { color: var(--color-primary) !important; }

/* ── Dotted list items ───────────────────────────────────────── */
.dotted-list-item {
  border-bottom: 1px dotted rgba(173,170,170,0.2);
}

/* ── Floating 3D animation ───────────────────────────────────── */
.floating-3d {
  animation: float 6s ease-in-out infinite;
}
@keyframes float {
  0%,100% { transform: translateY(0px) rotate(0deg); }
  50%     { transform: translateY(-20px) rotate(5deg); }
}

/* ── Material Symbols ────────────────────────────────────────── */
.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

/* ── Elementor section overrides ─────────────────────────────── */
.elementor-section.e-con,
.elementor-section {
  --gap: 0;
}

/* ── Nav bar ─────────────────────────────────────────────────── */
.aerocore-nav {
  position: fixed;
  top: 0; width: 100%; z-index: 50;
  background: rgba(14,14,14,0.4);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: 0 0 15px rgba(255,142,125,0.1);
}

/* ── Buttons ─────────────────────────────────────────────────── */
.btn-primary {
  background: var(--color-primary);
  color: var(--color-on-primary);
  font-family: var(--font-headline);
  font-weight: 700;
  border-radius: 6px;
  transition: box-shadow 0.2s, transform 0.1s;
}
.btn-primary:hover {
  box-shadow: 0 0 25px rgba(255,142,125,0.3);
}

/* ── Gradient text ───────────────────────────────────────────── */
.gradient-text {
  background: linear-gradient(to right, var(--color-primary), var(--color-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Pulse animation ─────────────────────────────────────────── */
@keyframes pulse {
  0%,100% { opacity: 1; }
  50%     { opacity: .5; }
}
.animate-pulse { animation: pulse 2s cubic-bezier(0.4,0,0.6,1) infinite; }

/* ── Bounce animation ────────────────────────────────────────── */
@keyframes bounce {
  0%,100% { transform: translateY(-25%); animation-timing-function: cubic-bezier(0.8,0,1,1); }
  50%     { transform: none; animation-timing-function: cubic-bezier(0,0,0.2,1); }
}
.animate-bounce { animation: bounce 1s infinite; }

/* ── Responsive: sidebar + content ──────────────────────────── */
#ecosystem-section .eco-flex {
  display: flex;
  gap: clamp(2rem, 4vw, 4rem);
  align-items: flex-start;
}
#ecosystem-section .eco-sidebar {
  flex-shrink: 0;
  align-self: stretch;
}
#ecosystem-section .eco-content {
  flex: 1;
}

/* ── Elementor: remove default page padding on canvas ────────── */
.elementor-page .entry-content {
  padding: 0 !important;
  margin: 0 !important;
}
.elementor-page .site-content,
.elementor-page #content {
  padding: 0 !important;
}
