/* ─────────────────────────────────────────
   BoniNerd — IA + IN
   Custom styles (Tailwind handles the rest)
───────────────────────────────────────── */

/* Base */
body {
  font-family: 'Inter', sans-serif;
}

html {
  scroll-behavior: smooth;
}

.section-anchor {
  scroll-margin-top: 110px;
}

/* ── Hero dynamic word ── */
.hero-dynamic {
  display: inline-block;
  color: #6b7280;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.hero-dynamic.is-leaving {
  opacity: 0;
  transform: translateY(-12px);
}

.hero-dynamic.is-entering {
  opacity: 0;
  transform: translateY(12px);
}

/* ── Glow blob ── */
.glow-blob {
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0, 220, 130, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

/* ── Gradient text ── */
.gradient-text {
  background: linear-gradient(135deg, #00DC82, #34D399);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Cards ── */
.card-glow {
  position: relative;
  background: #111;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: all 0.3s ease;
}

.card-glow:hover {
  border-color: rgba(0, 220, 130, 0.4);
  box-shadow: 0 0 30px rgba(0, 220, 130, 0.08);
  transform: translateY(-2px);
}

.talk-card {
  padding: 0;
  overflow: hidden;
}

.talk-card__summary {
  list-style: none;
  cursor: pointer;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 24px;
}

.talk-card__summary::-webkit-details-marker {
  display: none;
}

.talk-card__chevron {
  color: #6b7280;
  font-size: 0.9rem;
  transition: transform 0.2s ease, color 0.2s ease;
}

.talk-card[open] .talk-card__chevron {
  transform: rotate(180deg);
  color: #00dc82;
}

.talk-card__body {
  padding: 0 24px 22px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.talk-card__list {
  list-style: none;
  display: grid;
  gap: 10px;
}

.talk-card__link {
  color: #00dc82;
}

.talk-card__link:hover {
  color: #34d399;
}

.event-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.event-photo {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  width: 100%;
  height: 120px;
  object-fit: cover;
  display: block;
}

/* ── Buttons ── */
.btn-primary {
  background: #00DC82;
  color: #0B0B0B;
  padding: 12px 28px;
  border-radius: 10px;
  font-weight: 600;
  transition: all 0.2s ease;
  display: inline-block;
}

.btn-primary:hover {
  opacity: 0.9;
  box-shadow: 0 0 24px rgba(0, 220, 130, 0.45);
  transform: translateY(-1px);
}

.btn-ghost {
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 12px 28px;
  border-radius: 10px;
  font-weight: 600;
  transition: all 0.2s ease;
  display: inline-block;
}

.btn-ghost:hover {
  background: white;
  color: black;
  border-color: white;
  transform: translateY(-1px);
}

.hero-badge {
  transform: translateY(12px);
}

.floating-nav {
  position: fixed;
  top: 16px;
  left: 16px;
  right: 16px;
  z-index: 50;
  pointer-events: none;
  opacity: 0;
  transform: translateY(-18px);
  transition: opacity 0.28s ease, transform 0.28s ease;
}

.floating-nav.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.floating-nav__inner {
  display: inline-flex;
  max-width: min(960px, 100%);
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background: rgba(11, 11, 11, 0.78);
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.26);
}

.floating-nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: #eaeaea;
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.floating-nav__dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #00dc82;
  box-shadow: 0 0 14px rgba(0, 220, 130, 0.55);
  flex: 0 0 auto;
}

.floating-nav__links {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}

.floating-nav__links::-webkit-scrollbar {
  display: none;
}

.floating-nav__link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: #9ca3af;
  font-size: 0.84rem;
  font-weight: 500;
  white-space: nowrap;
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.floating-nav__link:hover {
  color: #eaeaea;
  background: rgba(255, 255, 255, 0.06);
}

.floating-nav__link.is-active {
  color: #0b0b0b;
  background: #00dc82;
  border-color: #00dc82;
}

/* ── Project cards ── */
.project-card {
  overflow: hidden;
}

.project-card__single-img {
  height: 180px;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.project-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

/* ── Mini browser preview ── */
.project-browser {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  overflow: hidden;
}

.project-browser__bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  background: #1a1a1a;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.project-browser__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  flex-shrink: 0;
}

.project-browser__dot:nth-child(1) { background: #ff5f57; }
.project-browser__dot:nth-child(2) { background: #febc2e; }
.project-browser__dot:nth-child(3) { background: #28c840; }

.project-browser__url {
  font-size: 0.68rem;
  color: #4b5563;
  margin-left: 6px;
  font-family: monospace;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.project-browser__viewport {
  height: 148px;
  overflow: hidden;
  position: relative;
  background: #fff;
}

.project-browser__iframe {
  width: 200%;
  height: 400%;
  transform: scale(0.5);
  transform-origin: top left;
  border: none;
  pointer-events: none;
  display: block;
}

.project-browser__og {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
}

.project-tag {
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #00DC82;
  background: rgba(0, 220, 130, 0.1);
  border: 1px solid rgba(0, 220, 130, 0.2);
  padding: 2px 8px;
  border-radius: 999px;
}

/* ── Contact form ── */
.contact-label {
  display: block;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #6b7280;
  margin-bottom: 6px;
}

.contact-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 12px 14px;
  color: #eaeaea;
  font-size: 0.92rem;
  font-family: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  outline: none;
}

.contact-input::placeholder {
  color: #374151;
}

.contact-input:focus {
  border-color: rgba(0, 220, 130, 0.5);
  box-shadow: 0 0 0 3px rgba(0, 220, 130, 0.08);
}

.contact-input.is-invalid {
  border-color: rgba(239, 68, 68, 0.6);
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.08);
}

.contact-field-error {
  font-size: 0.75rem;
  color: #f87171;
  margin-top: 5px;
}

.contact-textarea {
  resize: vertical;
  min-height: 100px;
}

.contact-type-option {
  cursor: pointer;
}

.contact-type-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.contact-type-box {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: #9ca3af;
  font-size: 0.9rem;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.contact-type-box:hover {
  border-color: rgba(0, 220, 130, 0.3);
  color: #eaeaea;
}

.contact-type-option input[type="radio"]:checked + .contact-type-box {
  border-color: #00DC82;
  background: rgba(0, 220, 130, 0.08);
  color: #eaeaea;
}

.contact-type-icon {
  font-size: 1rem;
}

.contact-feedback {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 500;
}

.contact-feedback--success {
  background: rgba(0, 220, 130, 0.1);
  border: 1px solid rgba(0, 220, 130, 0.3);
  color: #00DC82;
}

.contact-feedback--error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #f87171;
}

.hidden {
  display: none !important;
}

/* ── YouTube cards ── */
.yt-card {
  overflow: hidden;
  display: block;
  text-decoration: none;
}

.yt-card__thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.yt-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.yt-card:hover .yt-card__img {
  transform: scale(1.03);
}

.yt-card__play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.3);
  transition: background 0.2s ease;
}

.yt-card:hover .yt-card__play {
  background: rgba(0, 220, 130, 0.25);
}

.yt-card__play svg {
  width: 48px;
  height: 48px;
  background: #00DC82;
  border-radius: 50%;
  padding: 14px;
  box-shadow: 0 0 24px rgba(0, 220, 130, 0.5);
  transition: transform 0.2s ease;
}

.yt-card:hover .yt-card__play svg {
  transform: scale(1.1);
}

.project-link {
  font-size: 0.84rem;
  font-weight: 600;
  color: #00DC82;
  transition: color 0.2s ease;
}

.project-link:hover {
  color: #34d399;
}

/* ── Decorative ── */
.slash {
  color: rgba(0, 220, 130, 0.35);
}

.quickwin-product {
  display: flex;
  text-decoration: none;
  cursor: pointer;
}

.quickwin-cta {
  display: inline-block;
  margin-top: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #00DC82;
}

.big-number {
  font-size: 3.5rem;
  font-weight: 900;
  color: #00DC82;
  line-height: 1;
}

/* ── Contact social links ── */
.contact-social-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #6b7280;
  font-size: 0.85rem;
  font-weight: 500;
  transition: color 0.2s ease;
  text-decoration: none;
}

.contact-social-link:hover {
  color: #00DC82;
}

@media (max-width: 767px) {
  .floating-nav {
    top: 12px;
    left: 12px;
    right: 12px;
  }

  .floating-nav__inner {
    display: flex;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .floating-nav__links {
    padding-bottom: 2px;
  }

  .floating-nav__brand {
    justify-content: center;
  }
}
