/* css/site2.css — custom styles for index2.html app shell */

:root {
  --shell-bg: #0b0f14;
  --frame-border: rgba(255, 255, 255, 0.08);
  --accent: #38bdf8;
  --accent-deep: #0ea5e9;
  --sidebar: #111827;
  --main-bg: #f8fafc;
  --text: #334155;
  --heading: #0f172a;
}

html {
  height: 100%;
  text-size-adjust: 100%;
}

body {
  height: 100%;
  overflow: hidden;
  background:
    radial-gradient(
      ellipse 80% 60% at 10% 0%,
      rgba(56, 189, 248, 0.14),
      transparent 55%
    ),
    radial-gradient(
      ellipse 60% 50% at 90% 100%,
      rgba(14, 165, 233, 0.1),
      transparent 50%
    ),
    var(--shell-bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: rgba(56, 189, 248, 0.25);
  color: #0c4a6e;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100%;
  z-index: 100;
  padding: 0.65rem 1rem;
  border-radius: 0.5rem;
  background: #fff;
  color: #0f172a;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.15);
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 1rem;
}

.site-shell {
  height: 100dvh;
  padding: 0.75rem;
}

@media (min-width: 768px) {
  .site-shell {
    padding: 1rem;
  }
}

.site-frame {
  height: 100%;
  display: flex;
  overflow: hidden;
  border-radius: 1.25rem;
  border: 1px solid var(--frame-border);
  background: var(--main-bg);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.03),
    0 24px 80px rgba(0, 0, 0, 0.45);
}

.site-sidebar {
  width: 17rem;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, #131c2e 0%, var(--sidebar) 100%);
  color: #cbd5e1;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
}

.site-main {
  flex: 1;
  min-width: 0;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  scroll-behavior: smooth;
  background: linear-gradient(
    180deg,
    rgba(248, 250, 252, 0.98) 0%,
    #f1f5f9 100%
  );
}

@media (prefers-reduced-motion: reduce) {
  .site-main {
    scroll-behavior: auto;
  }
}

.site-main::-webkit-scrollbar {
  width: 10px;
}

.site-main::-webkit-scrollbar-track {
  background: transparent;
}

.site-main::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.45);
  border-radius: 999px;
  border: 2px solid transparent;
  background-clip: padding-box;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.7rem 0.85rem;
  border-radius: 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #94a3b8;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease;
}

.nav-link:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #e2e8f0;
}

.nav-link.is-active {
  background: rgba(56, 189, 248, 0.14);
  color: #e0f2fe;
  box-shadow: inset 0 0 0 1px rgba(56, 189, 248, 0.25);
}

.nav-link.is-active .nav-icon {
  color: var(--accent);
}

.nav-icon {
  width: 1.1rem;
  height: 1.1rem;
  flex-shrink: 0;
}

.avatar-ring {
  background: linear-gradient(135deg, #38bdf8, #0ea5e9 45%, #6366f1);
  padding: 2px;
  border-radius: 1rem;
}

.avatar-inner {
  display: grid;
  place-items: center;
  width: 4.5rem;
  height: 4.5rem;
  border-radius: calc(1rem - 2px);
  background: #0f172a;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: #e0f2fe;
  overflow: hidden;
}

.avatar-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nav-link--login {
  margin-top: 0.5rem;
  color: #64748b !important;
  font-size: 0.8125rem;
}

.nav-link--login:hover {
  color: #cbd5e1 !important;
}

.fishline-card {
  display: grid;
  gap: 1.25rem;
}

.fishline-card h3 {
  color: #fff;
  font-size: 1.35rem;
  font-weight: 800;
}

.fishline-card__tagline {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.fishline-card ul {
  list-style: none;
  display: grid;
  gap: 0.5rem;
}

.fishline-card li {
  display: flex;
  gap: 0.65rem;
  font-size: 0.9375rem;
  color: #f1f5f9;
  line-height: 1.45;
}

.fishline-card li::before {
  content: "→";
  color: #38bdf8;
  font-weight: 700;
}

.fishline-card-layout {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 1024px) {
  .fishline-card-layout {
    grid-template-columns: 11rem 1fr;
    align-items: center;
    gap: 2rem;
  }

  .fishline-card__logo-wrap {
    min-height: 8rem;
  }

  .fishline-card__logo {
    max-height: 5.5rem;
  }
}

.fishline-card-footer {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (min-width: 1024px) {
  .fishline-card-footer {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.fishline-card-footer .btn-primary {
  flex-shrink: 0;
}

.text-slate-300 {
  color: #cbd5e1;
}

.testimonial-dots {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 1rem;
}

.testimonial-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.25);
  border: none;
  padding: 0;
  cursor: pointer;
  transition:
    background 0.2s ease,
    transform 0.2s ease;
}

.testimonial-dot.is-active {
  background: #38bdf8;
  transform: scale(1.15);
}

.section-eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: #0284c7;
  margin-bottom: 0.5rem;
}

.section-block {
  scroll-margin-top: 1.5rem;
  padding-bottom: 2.5rem;
}

.section-block:last-child {
  padding-bottom: 3rem;
}

.card {
  background: #fff;
  border-radius: 1rem;
  border: 1px solid rgba(15, 23, 42, 0.06);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

/* Dark promo cards — must follow .card to override white background */
.card.fishline-card {
  background: linear-gradient(135deg, #0f172a 0%, #0c4a6e 100%) !important;
  color: #e2e8f0;
  border-color: rgba(56, 189, 248, 0.28);
  box-shadow: 0 16px 48px rgba(14, 116, 144, 0.22);
}

.card.fishline-card p,
.card.fishline-card .fishline-card__body {
  color: #e2e8f0;
  line-height: 1.65;
}

.card.fishline-card .fishline-card__tagline {
  color: #7dd3fc;
}

.fishline-card__logo-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 7rem;
  padding: 1.25rem 1.5rem;
  background: #fff;
  border-radius: 1rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.fishline-card__logo {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 5rem;
  object-fit: contain;
}

.client-logo-card {
  min-height: 7rem;
  padding: 1.25rem 1rem !important;
}

.client-logo {
  max-height: 3.75rem;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  opacity: 0.88;
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
}

.client-logo-card:hover .client-logo {
  opacity: 1;
  transform: scale(1.04);
}

.card-hover {
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}

.card-hover:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
  border-color: rgba(56, 189, 248, 0.25);
}

.hero-gradient-text {
  background: linear-gradient(135deg, #0f172a 0%, #0369a1 55%, #0ea5e9 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stat-card {
  position: relative;
  overflow: hidden;
}

.stat-card::after {
  content: "";
  position: absolute;
  inset: auto -20% -40% auto;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(56, 189, 248, 0.18),
    transparent 70%
  );
}

.skill-bar {
  height: 0.45rem;
  border-radius: 999px;
  background: #e2e8f0;
  overflow: hidden;
}

.skill-bar-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #38bdf8, #0ea5e9);
  transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

@media (prefers-reduced-motion: reduce) {
  .skill-bar-fill {
    transition: none;
  }
}

.timeline-line {
  position: absolute;
  left: 0.65rem;
  top: 0.5rem;
  bottom: 0.5rem;
  width: 2px;
  background: linear-gradient(180deg, #38bdf8, #e2e8f0);
  border-radius: 999px;
}

.timeline-dot {
  width: 0.85rem;
  height: 0.85rem;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--accent);
  box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.15);
  flex-shrink: 0;
}

.portfolio-card {
  position: relative;
  overflow: hidden;
  border-radius: 0.9rem;
  aspect-ratio: 4 / 3;
  background-size: cover;
  background-position: center;
}

.portfolio-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(15, 23, 42, 0.88));
  opacity: 0.85;
  transition: opacity 0.25s ease;
}

.portfolio-card:hover::before {
  opacity: 0.95;
}

.portfolio-card-content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1rem;
  color: #fff;
  transform: translateY(4px);
  transition: transform 0.25s ease;
}

.portfolio-card:hover .portfolio-card-content {
  transform: translateY(0);
}

.filter-pill {
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #64748b;
  background: #fff;
  border: 1px solid #e2e8f0;
  transition: all 0.2s ease;
}

.filter-pill:hover {
  border-color: #bae6fd;
  color: #0369a1;
}

.filter-pill.is-active {
  background: #0ea5e9;
  border-color: #0ea5e9;
  color: #fff;
  box-shadow: 0 4px 14px rgba(14, 165, 233, 0.35);
}

.testimonial-card {
  min-height: 14rem;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  border-radius: 0.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, #0ea5e9, #0284c7);
  box-shadow: 0 4px 14px rgba(14, 165, 233, 0.35);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    opacity 0.2s ease;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(14, 165, 233, 0.4);
}

.btn-primary:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  border-radius: 0.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #0369a1;
  background: #fff;
  border: 1px solid #bae6fd;
  transition:
    background 0.2s ease,
    border-color 0.2s ease;
}

.btn-secondary:hover {
  background: #f0f9ff;
  border-color: #7dd3fc;
}

.form-input {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border-radius: 0.75rem;
  border: 1px solid #e2e8f0;
  background: #fff;
  font-size: 0.9375rem;
  color: #0f172a;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.form-input:focus {
  border-color: #38bdf8;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.15);
  outline: none;
}

.form-label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #475569;
}

.mobile-header {
  display: none;
}

.mobile-overlay {
  display: none;
}

@media (max-width: 1023px) {
  .site-shell {
    padding: 0;
  }

  .site-frame {
    border-radius: 0;
    border: none;
    box-shadow: none;
  }

  .site-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 50;
    width: min(18rem, 88vw);
    transform: translateX(-105%);
    transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 24px 0 48px rgba(0, 0, 0, 0.35);
  }

  .site-sidebar.is-open {
    transform: translateX(0);
  }

  .mobile-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.85rem 1rem;
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 20;
  }

  .mobile-overlay {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 40;
    background: rgba(2, 6, 23, 0.55);
    backdrop-filter: blur(2px);
  }
}

[x-cloak] {
  display: none !important;
}
