/* ==========================================================================
   EKOREX LTD — WORDPRESS THEME STYLESHEET
   Compatible with Elementor & Standalone Hero Layout
   ========================================================================== */

:root {
  /* Core Colors */
  --bg-pure: #FAFCFE;
  --bg-white: #FFFFFF;
  --text-dark: #121826;
  --text-headline: #1856F3;
  --text-sub: #556987;
  --text-eyebrow: #1E293B;

  /* Pill & Button Colors */
  --pill-navy: #13192B;
  --pill-navy-hover: #1C243D;
  --accent-teal: #00D2B4;
  --accent-cyan: #1856F3;

  /* Fonts */
  --font-display: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Shadows */
  --shadow-notch: 0 8px 24px rgba(18, 24, 38, 0.05);
  --shadow-pill: 0 16px 36px rgba(19, 25, 43, 0.32), 0 4px 10px rgba(19, 25, 43, 0.15);
  --shadow-dock: 0 8px 20px rgba(18, 24, 38, 0.08);
  --shadow-floating: 0 20px 40px rgba(0, 0, 0, 0.12);

  /* Transitions */
  --trans-smooth: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  --trans-bounce: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: var(--bg-pure);
  font-family: var(--font-body);
  color: var(--text-dark);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ---------------- Video Background ---------------- */
.video-bg-container {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  overflow: hidden;
  background-color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bg-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: contrast(1.04) brightness(1.02);
  opacity: 0.72;
  transition: opacity 0.5s ease;
}

.video-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse at center,
    rgba(255, 255, 255, 0.65) 0%,
    rgba(250, 252, 254, 0.8) 55%,
    rgba(250, 252, 254, 0.95) 100%
  );
  pointer-events: none;
}

/* ---------------- Hero Screen Layout ---------------- */
.hero-screen {
  position: relative;
  z-index: 2;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

/* ---------------- Top Island Notch ---------------- */
.top-island-notch {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: flex-start;
  z-index: 50;
}

.notch-body {
  background: var(--bg-white);
  padding: 0.8rem 2.5rem 1.1rem;
  border-bottom-left-radius: 32px;
  border-bottom-right-radius: 32px;
  box-shadow: 0 12px 35px rgba(24, 40, 70, 0.09);
  display: flex;
  align-items: center;
  justify-content: center;
}

.notch-curve {
  width: 28px;
  height: 28px;
  position: relative;
  background: transparent;
}

.notch-left {
  border-top-right-radius: 20px;
  box-shadow: 10px -10px 0 0 var(--bg-white);
}

.notch-right {
  border-top-left-radius: 20px;
  box-shadow: -10px -10px 0 0 var(--bg-white);
}

.notch-logo-link {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  width: 200px;
  height: 64px;
  overflow: hidden;
  position: relative;
}

.notch-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform: scale(1.75);
  display: block;
  transition: var(--trans-smooth);
}

.notch-logo-link:hover .notch-logo-img {
  transform: scale(1.85);
}

/* ---------------- 3D Floating Decorative Accents ---------------- */
.floating-accent {
  position: absolute;
  z-index: 1;
  pointer-events: none;
  user-select: none;
}

.accent-left {
  left: 8%;
  bottom: 22%;
  animation: floatSlowLeft 6s ease-in-out infinite alternate;
}

.accent-right {
  right: 8%;
  bottom: 20%;
  animation: floatSlowRight 7s ease-in-out infinite alternate;
}

.accent-svg {
  display: block;
}

@keyframes floatSlowLeft {
  0% { transform: translateY(0) rotate(0deg); }
  100% { transform: translateY(-18px) rotate(-6deg); }
}

@keyframes floatSlowRight {
  0% { transform: translateY(0) rotate(0deg); }
  100% { transform: translateY(16px) rotate(8deg); }
}

/* ---------------- Centered Hero Content ---------------- */
.hero-center-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 780px;
  width: 100%;
  z-index: 10;
  margin-top: -1.5rem;
}

.emoji-badge-wrapper {
  margin-bottom: 1.4rem;
  animation: bounceBadge 3s ease-in-out infinite alternate;
}

.emoji-circle {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: #FFFFFF;
  box-shadow: 0 12px 24px rgba(18, 32, 60, 0.08), 0 2px 6px rgba(0, 0, 0, 0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(230, 238, 248, 0.8);
}

.emoji-icon {
  font-size: 1.75rem;
  line-height: 1;
}

@keyframes bounceBadge {
  0% { transform: translateY(0); }
  100% { transform: translateY(-6px); }
}

.eyebrow-text {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--text-eyebrow);
  margin-bottom: 0.65rem;
  text-transform: uppercase;
}

.main-headline {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--text-headline);
  margin-bottom: 1.25rem;
}

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

.sub-headline {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-sub);
  line-height: 1.6;
  font-weight: 450;
  margin-bottom: 2.25rem;
}

/* ---------------- Notify Me Pill & Morphing Form ---------------- */
.notify-cta-wrapper {
  position: relative;
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-notify-pill {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  padding: 0.6rem 1.6rem 0.6rem 0.65rem;
  background: var(--pill-navy);
  color: #FFFFFF;
  border: none;
  border-radius: 9999px;
  box-shadow: var(--shadow-pill);
  cursor: pointer;
  transition: var(--trans-bounce);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
}

.btn-notify-pill:hover {
  background: var(--pill-navy-hover);
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 20px 42px rgba(19, 25, 43, 0.4);
}

.pill-icon-circle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #FFFFFF;
  color: var(--pill-navy);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  transition: var(--trans-smooth);
}

.btn-notify-pill:hover .pill-icon-circle {
  transform: scale(1.08);
  color: var(--text-headline);
}

.pill-label {
  letter-spacing: 0.01em;
}

.pill-arrow {
  transition: transform 0.3s ease;
}

.btn-notify-pill:hover .pill-arrow {
  transform: translateX(3px);
}

.notify-form {
  background: var(--pill-navy);
  padding: 0.45rem 0.5rem 0.45rem 1rem;
  border-radius: 9999px;
  box-shadow: var(--shadow-pill);
  display: flex;
  flex-direction: column;
  animation: expandForm 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes expandForm {
  from {
    opacity: 0;
    transform: scale(0.92);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.form-inner {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.form-input-box {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.form-mail-icon {
  color: #8E9EB5;
}

.notify-input {
  background: transparent;
  border: none;
  outline: none;
  color: #FFFFFF;
  font-family: var(--font-body);
  font-size: 0.95rem;
  width: 240px;
}

.notify-input::placeholder {
  color: #70819B;
}

.form-submit-btn {
  background: #FFFFFF;
  color: var(--pill-navy);
  border: none;
  padding: 0.55rem 1.1rem;
  border-radius: 9999px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  transition: var(--trans-smooth);
}

.form-submit-btn:hover {
  background: var(--accent-teal);
  color: #0B192C;
}

.form-cancel-btn {
  background: transparent;
  border: none;
  color: #70819B;
  font-size: 1.4rem;
  cursor: pointer;
  padding: 0 0.5rem;
  line-height: 1;
  transition: var(--trans-smooth);
}

.form-cancel-btn:hover {
  color: #FFFFFF;
}

.form-status {
  font-size: 0.78rem;
  color: #00E5C0;
  text-align: center;
  margin-top: 0.3rem;
  padding: 0 0.5rem;
  min-height: 1rem;
}

.form-status.is-error {
  color: #FF7B7B;
}

.is-hidden {
  display: none !important;
}

/* ---------------- Bottom Social Dock ---------------- */
.bottom-dock {
  position: fixed;
  bottom: 2.2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 1rem;
  z-index: 50;
}

.dock-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--bg-white);
  color: #8C9BAE;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: var(--shadow-dock);
  border: 1px solid rgba(226, 232, 240, 0.7);
  transition: var(--trans-bounce);
}

.dock-btn:hover {
  color: var(--text-headline);
  transform: translateY(-3px) scale(1.08);
  box-shadow: 0 12px 24px rgba(24, 86, 243, 0.18);
  border-color: rgba(24, 86, 243, 0.25);
}

/* ---------------- Subtle Video Controls ---------------- */
.video-subtle-ctrls {
  position: fixed;
  bottom: 1.8rem;
  right: 2rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  z-index: 50;
}

.btn-subtle {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.8rem;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 9999px;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  color: #556987;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: var(--trans-smooth);
}

.btn-subtle:hover {
  background: #FFFFFF;
  color: var(--text-headline);
  box-shadow: 0 6px 16px rgba(24, 86, 243, 0.15);
  border-color: rgba(24, 86, 243, 0.3);
}

/* ---------------- Toast Notification ---------------- */
.toast-container {
  position: fixed;
  top: 5.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
}

.toast {
  padding: 0.85rem 1.6rem;
  background: var(--pill-navy);
  color: #FFFFFF;
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: 9999px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.25);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  opacity: 0;
  transform: translateY(-10px);
  transition: var(--trans-bounce);
}

.toast.is-show {
  opacity: 1;
  transform: translateY(0);
}

.toast svg {
  color: var(--accent-teal);
}

/* ---------------- Responsive Styles (Mobile & Tablet) ---------------- */
@media (max-width: 768px) {
  .hero-screen {
    padding: 1rem 1.25rem;
    justify-content: center;
  }

  .notch-body {
    padding: 0.4rem 1.5rem 0.65rem;
    border-bottom-left-radius: 22px;
    border-bottom-right-radius: 22px;
  }

  .notch-curve {
    width: 20px;
    height: 20px;
  }

  .notch-left {
    border-top-right-radius: 14px;
    box-shadow: 8px -8px 0 0 var(--bg-white);
  }

  .notch-right {
    border-top-left-radius: 14px;
    box-shadow: -8px -8px 0 0 var(--bg-white);
  }

  .notch-logo-link {
    width: 150px;
    height: 48px;
  }

  .notch-logo-img {
    transform: scale(1.65);
  }

  .video-subtle-ctrls {
    position: fixed;
    top: 0.85rem;
    right: 0.85rem;
    bottom: auto;
    gap: 0.4rem;
  }

  .btn-subtle {
    padding: 0.35rem 0.65rem;
    font-size: 0.7rem;
  }

  .btn-subtle span {
    display: none;
  }

  .floating-accent {
    opacity: 0.45;
    transform-origin: center;
  }

  .accent-left {
    left: -15px;
    bottom: 12%;
    transform: scale(0.55);
  }

  .accent-right {
    right: -15px;
    bottom: 12%;
    transform: scale(0.55);
  }

  .emoji-badge-wrapper {
    margin-bottom: 0.9rem;
  }

  .emoji-circle {
    width: 44px;
    height: 44px;
    border-radius: 14px;
  }

  .emoji-icon {
    font-size: 1.45rem;
  }

  .eyebrow-text {
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    margin-bottom: 0.5rem;
  }

  .main-headline {
    font-size: clamp(1.85rem, 7.5vw, 2.75rem);
    margin-bottom: 0.85rem;
  }

  .sub-headline {
    font-size: clamp(0.85rem, 3.8vw, 1.05rem);
    line-height: 1.5;
    margin-bottom: 1.75rem;
    padding: 0 0.5rem;
  }

  .btn-notify-pill {
    padding: 0.5rem 1.4rem 0.5rem 0.55rem;
    font-size: 0.92rem;
  }

  .pill-icon-circle {
    width: 34px;
    height: 34px;
  }

  .notify-form {
    max-width: min(340px, 92vw);
    padding: 0.35rem 0.45rem 0.35rem 0.75rem;
  }

  .notify-input {
    width: 140px;
    font-size: 0.85rem;
  }

  .form-submit-btn {
    padding: 0.45rem 0.85rem;
    font-size: 0.82rem;
  }

  .bottom-dock {
    bottom: max(1.2rem, env(safe-area-inset-bottom, 1.2rem));
    gap: 0.85rem;
  }

  .dock-btn {
    width: 38px;
    height: 38px;
  }
}

@media (max-width: 480px) and (max-height: 720px) {
  .floating-accent {
    display: none;
  }

  .hero-center-content {
    margin-top: 0.5rem;
  }

  .emoji-badge-wrapper {
    margin-bottom: 0.6rem;
  }

  .main-headline {
    font-size: 1.75rem;
    margin-bottom: 0.6rem;
  }

  .sub-headline {
    font-size: 0.82rem;
    margin-bottom: 1.35rem;
  }

  .notch-logo-link {
    width: 130px;
    height: 38px;
  }

  .notch-body {
    padding: 0.35rem 1.2rem 0.55rem;
  }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
