/*
 * octopus-hero.css — octopus-03-hero Component Styles
 * Scoped to <octopus-hero-section> custom element.
 *
 * This file contains ONLY component-specific styles.
 * Shared styles are in C:\CoWork\WebSite\src\assets\css\octopus\
 *
 * To use: Include shared library first, then this file
 *   <link rel="stylesheet" href="./assets/css/octopus/index.css">
 *   <link rel="stylesheet" href="./octopus-03-hero/octopus-hero.css">
 */

/* ── Host element (component-specific) ──────────────────────── */
octopus-hero-section {
  display: block;
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 100vh;
}

/* ── Background container (unique to this component) ─────────── */
/* Background is intentionally transparent — set it on the host page */
octopus-hero-section .oct-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
  background: transparent;
  pointer-events: none;
}

/* ── Header / Nav (component-specific) ─────────────────────── */
octopus-hero-section .oct-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 68px;
  z-index: 100;
  display: flex;
  align-items: center;
  padding: 0 32px;
  background: rgba(8,15,8,0.72);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(22,163,74,0.15);
  transition: background .2s ease;
}

octopus-hero-section .oct-header__inner {
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
}

octopus-hero-section .oct-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  flex-shrink: 0;
  margin-right: 40px;
}

octopus-hero-section .oct-logo__mark {
  width: 30px;
  height: 30px;
  background: var(--oct-green);
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 14px var(--oct-green-glow);
}

octopus-hero-section .oct-logo__name {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.4px;
  color: var(--oct-text);
}

/* ── Hero section 1 (component-specific) ──────────────────── */
octopus-hero-section .oct-section-1 {
  position: relative;
  height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
  background: var(--oct-bg);
}

octopus-hero-section .oct-section-1__left {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 40px;
  z-index: 10;
}

octopus-hero-section .oct-section-1__right {
  position: relative;
  overflow: hidden;
  background: var(--oct-bg);
}

octopus-hero-section .oct-canvas-container {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

octopus-hero-section canvas {
  width: 100%;
  height: 100%;
}

octopus-hero-section .oct-hero-content {
  position: relative;
  z-index: 20;
  text-align: left;
  max-width: 480px;
}

octopus-hero-section .oct-hero__headline {
  font-size: clamp(42px, 6vw, 64px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.15;
  margin-bottom: 20px;
  color: var(--oct-text);
}

octopus-hero-section .oct-hero__subheading {
  font-size: clamp(16px, 2vw, 18px);
  color: var(--oct-dimmed);
  line-height: 1.6;
  margin-bottom: 40px;
  opacity: 0;
  transition: opacity .8s ease;
}

octopus-hero-section .oct-hero__subheading.show {
  opacity: 1;
}

octopus-hero-section .oct-hero__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  background: var(--oct-green);
  border: none;
  border-radius: 10px;
  cursor: pointer;
  text-decoration: none;
  transition: background .2s, box-shadow .2s;
}

octopus-hero-section .oct-hero__cta:hover {
  background: #15803D;
  box-shadow: 0 0 28px var(--oct-green-glow);
}

/* ── Transition section (section 2) ────────────────────────── */
octopus-hero-section .oct-section-2 {
  position: relative;
  height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  background: var(--oct-bg);
  overflow: hidden;
}

octopus-hero-section .oct-section-2__left {
  position: relative;
  height: 100%;
  overflow: hidden;
}

octopus-hero-section .oct-section-2__right {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 60px 40px;
  z-index: 10;
}

octopus-hero-section .oct-section-2__title {
  font-size: 42px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin-bottom: 20px;
  color: var(--oct-text);
  opacity: 0;
  transform: translateX(20px);
  transition: opacity .8s ease, transform .8s ease;
}

octopus-hero-section .oct-section-2__title.show {
  opacity: 1;
  transform: translateX(0);
}

octopus-hero-section .oct-section-2__text {
  font-size: 16px;
  color: var(--oct-dimmed);
  line-height: 1.7;
  margin-bottom: 30px;
  opacity: 0;
  transform: translateX(20px);
  transition: opacity .8s ease .2s, transform .8s ease .2s;
}

octopus-hero-section .oct-section-2__text.show {
  opacity: 1;
  transform: translateX(0);
}

octopus-hero-section .oct-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  background: var(--oct-green);
  border: none;
  border-radius: 10px;
  cursor: pointer;
  text-decoration: none;
  width: fit-content;
  opacity: 0;
  transform: translateX(20px);
  transition: opacity .8s ease .4s, transform .8s ease .4s, background .2s, box-shadow .2s;
}

octopus-hero-section .oct-cta.show {
  opacity: 1;
  transform: translateX(0);
}

octopus-hero-section .oct-cta:hover {
  background: #15803D;
  box-shadow: 0 0 28px var(--oct-green-glow);
}

/* ── Content sections (3+) (component-specific) ────────────── */
octopus-hero-section .oct-section {
  padding: 100px 32px;
  max-width: 1280px;
  margin: 0 auto;
}

octopus-hero-section .oct-section--two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 80px;
  max-width: 100%;
  padding: 120px 80px;
  position: relative;
  background-size: cover;
  background-position: center;
}

/* Aquatic themed backgrounds for each section */
octopus-hero-section .oct-section--1 {
  background: linear-gradient(135deg, rgba(13, 148, 136, 0.08) 0%, rgba(45, 212, 191, 0.05) 100%);
}

octopus-hero-section .oct-section--2 {
  background: linear-gradient(135deg, rgba(22, 163, 74, 0.08) 0%, rgba(13, 148, 136, 0.05) 100%);
}

octopus-hero-section .oct-section--3 {
  background: linear-gradient(135deg, rgba(45, 212, 191, 0.08) 0%, rgba(22, 163, 74, 0.05) 100%);
}

octopus-hero-section .oct-section__content {
  padding: 60px;
  border-radius: 16px;
  background: rgba(8, 15, 8, 0.6);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(45, 212, 191, 0.15);
  box-shadow: 0 8px 32px rgba(13, 148, 136, 0.1);
}

octopus-hero-section .oct-section__left {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

octopus-hero-section .oct-section__right {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

octopus-hero-section .oct-section__title {
  font-size: 48px;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
  text-align: left;
  color: var(--oct-text);
}

octopus-hero-section .oct-section--two-col .oct-section__title {
  text-align: left;
  font-size: 42px;
  margin-bottom: 20px;
}

octopus-hero-section .oct-section__title em {
  font-style: normal;
  color: var(--oct-green);
}

octopus-hero-section .oct-section__text {
  font-size: 16px;
  color: var(--oct-dimmed);
  line-height: 1.7;
  max-width: 640px;
  margin: 0 auto 60px;
  text-align: center;
}

octopus-hero-section .oct-section--two-col .oct-section__text {
  text-align: left;
  margin: 0 0 40px 0;
}

octopus-hero-section .oct-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  margin-top: 60px;
}

octopus-hero-section .oct-section--two-col .oct-grid {
  grid-template-columns: repeat(2, 1fr);
  margin-top: 30px;
  gap: 24px;
}

octopus-hero-section .oct-card {
  background: rgba(22,163,74,0.08);
  border: 1px solid rgba(22,163,74,0.15);
  border-radius: 12px;
  padding: 32px;
  transition: background .2s, border-color .2s, box-shadow .2s;
}

octopus-hero-section .oct-card:hover {
  background: rgba(22,163,74,0.12);
  border-color: rgba(22,163,74,0.25);
  box-shadow: 0 0 20px var(--oct-green-glow);
}

octopus-hero-section .oct-card__title {
  font-size: 18px;
  font-weight: 700;
  color: var(--oct-text);
  margin-bottom: 12px;
}

octopus-hero-section .oct-card__text {
  font-size: 14px;
  color: var(--oct-dimmed);
  line-height: 1.6;
}

/* ── Placeholder image ────────────────────────────────────── */
octopus-hero-section .oct-placeholder {
  width: 100%;
  height: 400px;
  background: linear-gradient(135deg, rgba(22,163,74,0.15), rgba(22,163,74,0.05));
  border: 2px dashed rgba(22,163,74,0.3);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--oct-dimmed);
  font-size: 14px;
  margin: 60px 0;
}

octopus-hero-section .oct-placeholder img {
  max-width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
}

/* ── Section images ────────────────────────────────────────── */
octopus-hero-section .oct-section__image {
  width: 100%;
  height: auto;
  max-width: 900px;
  display: block;
  margin: 0 auto 60px;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(22,163,74,0.15);
}

octopus-hero-section .oct-section--two-col .oct-section__image {
  max-width: 100%;
  width: 100%;
  margin: 0;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(13, 148, 136, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

octopus-hero-section .oct-section--two-col .oct-section__image:hover {
  transform: translateY(-8px);
  box-shadow: 0 30px 80px rgba(13, 148, 136, 0.3);
}

/* Animation GIF styling */
octopus-hero-section .oct-section__animation {
  width: 100%;
  max-width: 500px;
  height: auto;
  margin-top: 40px;
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(13, 148, 136, 0.15);
  display: block;
}

/* ── Footer (component-specific) ──────────────────────────── */
octopus-hero-section .oct-footer {
  padding: 60px 32px;
  border-top: 1px solid rgba(22,163,74,0.15);
  text-align: center;
  color: var(--oct-dimmed);
  font-size: 14px;
}
