﻿/* =========================================================
   BRIDGII - Global UI Styles
   Modern edtech visual language with soft gradients/shapes.
   ========================================================= */

:root {
  --sky: #8a1538;
  --deep: #0a1f2e;
  --mint: #f3e6ec;
}

html {
  scroll-behavior: smooth;
}

body {
  background:
    radial-gradient(circle at 82% 18%, rgba(138, 21, 56, 0.2), transparent 34%),
    radial-gradient(circle at 18% 82%, rgba(179, 60, 99, 0.16), transparent 34%),
    #fff9fb;
}

.section-space {
  padding-top: 4.5rem;
  padding-bottom: 1.5rem;
}

.global-watermark {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
  user-select: none;
  font-size: clamp(4rem, 20vw, 16rem);
  font-weight: 800;
  letter-spacing: 0.16em;
  color: rgba(10, 31, 46, 0.04);
  z-index: 0;
}

/* Floating background elements */
.floating-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.blob,
.ring {
  position: absolute;
  filter: blur(0.2px);
  animation: float 8s ease-in-out infinite;
}

.blob {
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(138, 21, 56, 0.26), rgba(179, 60, 99, 0.22));
}

.blob-a { width: 200px; height: 200px; top: 10%; left: -70px; }
.blob-b { width: 140px; height: 140px; bottom: 15%; right: 8%; animation-delay: -1.6s; }
.blob-c { width: 110px; height: 110px; top: 38%; right: -30px; animation-delay: -3s; }

.ring {
  border-radius: 999px;
  border: 2px solid rgba(138, 21, 56, 0.24);
}

.ring-a { width: 120px; height: 120px; left: 10%; top: 45%; }
.ring-b { width: 90px; height: 90px; right: 24%; top: 14%; animation-delay: -2s; }

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-12px); }
}

.nav-link {
  transition: color 0.25s ease;
}

.nav-link:hover {
  color: var(--sky);
}

.social-icon {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border: 1px solid #e7c9d4;
  border-radius: 0.6rem;
  color: #8a1538;
  background: rgba(255, 249, 251, 0.9);
  transition: transform 0.25s ease, background 0.25s ease;
}

.social-icon svg {
  width: 16px;
  height: 16px;
}

.social-icon:hover {
  transform: translateY(-2px);
  background: #f8eef2;
}

.hero-brand {
  position: absolute;
  right: 1rem;
  top: 0.75rem;
  font-size: clamp(2rem, 8vw, 5rem);
  font-weight: 800;
  letter-spacing: 0.11em;
  color: rgba(10, 31, 46, 0.06);
}

.science-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.atom,
.wave {
  position: absolute;
}

.atom {
  width: 48px;
  height: 48px;
  border: 2px solid rgba(138, 21, 56, 0.42);
  border-radius: 999px;
}

.atom::before,
.atom::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 2px solid rgba(138, 21, 56, 0.34);
  border-radius: 999px;
}

.atom::before { transform: rotate(60deg); }
.atom::after { transform: rotate(-60deg); }

.atom-1 { right: 10%; bottom: 18%; animation: spin 8s linear infinite; }
.atom-2 { left: 8%; top: 12%; transform: scale(0.8); animation: spin 10s linear infinite reverse; }

.wave {
  width: 64px;
  height: 16px;
  border-top: 2px solid rgba(138, 21, 56, 0.55);
  border-bottom: 2px solid rgba(138, 21, 56, 0.55);
  border-radius: 999px;
}

.wave-1 {
  left: 12%;
  bottom: 22%;
  animation: pulse 4s ease-in-out infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes pulse {
  0%, 100% { transform: scaleX(1); opacity: 0.5; }
  50% { transform: scaleX(1.3); opacity: 1; }
}

.metric-card {
  border: 1px solid #e3c2ce;
  border-radius: 1rem;
  background: rgba(255, 249, 251, 0.9);
  padding: 1.25rem;
  text-align: center;
}

.metric-value {
  font-size: 2rem;
  line-height: 1;
  font-weight: 800;
  color: var(--deep);
}

.metric-label {
  margin-top: 0.45rem;
  font-size: 0.9rem;
  color: #475569;
  font-weight: 600;
}

.service-card {
  border: 1px solid rgba(227, 194, 206, 0.9);
  border-radius: 1rem;
  padding: 1.5rem;
  background: rgba(255, 249, 251, 0.9);
  backdrop-filter: blur(8px);
  box-shadow: 0 24px 60px -40px rgba(10, 31, 46, 0.4);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
  transform-style: preserve-3d;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 28px 70px -36px rgba(10, 31, 46, 0.45);
}

.service-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--deep);
}

.service-list {
  margin-top: 0.85rem;
  display: grid;
  gap: 0.4rem;
  color: #475569;
  font-size: 0.9rem;
}

.team-card {
  border: 1px solid #e3c2ce;
  border-radius: 1rem;
  background: rgba(255, 249, 251, 0.9);
  padding: 1.5rem;
  box-shadow: 0 24px 60px -40px rgba(10, 31, 46, 0.4);
  transition: transform 0.25s ease;
}

.team-card:hover {
  transform: translateY(-5px);
}

.avatar {
  width: 88px;
  height: 88px;
  border-radius: 999px;
  background: linear-gradient(135deg, #f8e8ee, #f4d8e2);
}

.avatar-founder {
  background: linear-gradient(135deg, #b33c63, #8a1538);
}

.testimonial-slider {
  position: relative;
}

.testimonial-track {
  display: flex;
  width: 200%;
  transition: transform 0.7s ease;
}

.testimonial-slide {
  width: 100%;
  flex-shrink: 0;
}

.contact-card {
  border-radius: 0.85rem;
  background: rgba(255, 249, 251, 0.88);
  border: 1px solid #e3c2ce;
  padding: 1rem;
}

.contact-card h3 {
  margin-bottom: 0.35rem;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #8a1538;
}

.input-field {
  width: 100%;
  border: 1px solid #e3c2ce;
  border-radius: 0.75rem;
  padding: 0.85rem 0.95rem;
  background: rgba(255, 249, 251, 0.94);
  color: #0f172a;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.input-field:focus {
  outline: none;
  border-color: #8a1538;
  box-shadow: 0 0 0 3px rgba(138, 21, 56, 0.15);
}

/* Reveal animation helper */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.is-in {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 768px) {
  .section-space {
    padding-top: 3rem;
  }

  .global-watermark {
    font-size: clamp(3rem, 26vw, 8rem);
  }
}

.brand-logo {
  width: 52px;
  height: 52px;
  display: block;
  object-fit: contain;
  border-radius: 0;
  background: transparent;
  padding: 0;
  box-shadow: none;
  transform: scale(1.45);
  transform-origin: left center;
}

.nav-link.active {
  color: var(--sky);
}

/* Keep words in normal readable form across the site */
.uppercase {
  text-transform: none !important;
}

[class*='tracking-'] {
  letter-spacing: normal !important;
}




.learning-card {
  border: 1px solid rgba(227, 194, 206, 0.9);
  border-radius: 1rem;
  background: rgba(255, 249, 251, 0.9);
  backdrop-filter: blur(8px);
  box-shadow: 0 20px 45px -34px rgba(10, 31, 46, 0.45);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
  overflow: hidden;
}

.learning-card:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 30px 60px -36px rgba(10, 31, 46, 0.5);
}

.learning-thumb {
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 800;
  color: #0a1f2e;
  background: linear-gradient(135deg, #f7e7ed, #f4d7e1);
}

.learning-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.subject-tag {
  display: inline-flex;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: #8a1538;
  background: #f4dde6;
}

.open-btn {
  border: 1px solid #dfb9c7;
  border-radius: 0.7rem;
  padding: 0.48rem 0.8rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: #8a1538;
  background: rgba(255, 249, 251, 0.95);
  transition: all 0.2s ease;
}

.open-btn:hover {
  background: #f8eef2;
  transform: translateY(-1px);
}

.category-btn {
  border: 1px solid #dfb9c7;
  border-radius: 999px;
  padding: 0.4rem 0.9rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: #8a1538;
  background: rgba(255, 249, 251, 0.95);
  transition: all 0.2s ease;
}

.category-btn:hover {
  background: #f8eef2;
}

.category-btn.active {
  color: #ffffff;
  background: linear-gradient(90deg, #8a1538, #b33c63);
  border-color: transparent;
}

.embed-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(2, 6, 23, 0.58);
  padding: 1rem;
}

.embed-modal.is-open {
  display: flex;
}

.embed-modal-panel {
  width: min(1100px, 96vw);
  max-height: 92vh;
  border-radius: 1rem;
  background: rgba(255, 249, 251, 0.95);
  border: 1px solid #dfb9c7;
  overflow: hidden;
}

.embed-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.9rem 1rem;
  border-bottom: 1px solid #e2e8f0;
}

.embed-frame-wrap {
  width: 100%;
  height: min(72vh, 650px);
  background: rgba(255, 249, 251, 0.9);
}

.embed-frame-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
}


/* Remove white utility surfaces from Tailwind classes */
[class*='bg-white'] {
  background-color: rgba(255, 249, 251, 0.9) !important;
}

.ai-widget {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 90;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.6rem;
}

.ai-widget-btn {
  min-width: 56px;
  height: 56px;
  border: 1px solid #d8a8b8;
  border-radius: 999px;
  background: linear-gradient(135deg, #8a1538, #b33c63);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0 0.8rem 0 0.9rem;
  box-shadow: 0 14px 30px -18px rgba(10, 31, 46, 0.55);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ai-widget-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 34px -18px rgba(10, 31, 46, 0.6);
}

.ai-widget-label {
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.ai-widget-panel {
  width: min(400px, 92vw);
  height: min(70vh, 620px);
  border: 1px solid #d8a8b8;
  border-radius: 1rem;
  overflow: hidden;
  background: rgba(255, 249, 251, 0.98);
  box-shadow: 0 26px 50px -28px rgba(10, 31, 46, 0.5);
  display: none;
}

.ai-widget-panel.open {
  display: block;
}

.ai-widget-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.7rem 0.85rem;
  border-bottom: 1px solid #e7c9d4;
  background: rgba(248, 238, 242, 0.9);
}

.ai-widget-title {
  margin: 0;
  font-size: 0.85rem;
  font-weight: 800;
  color: #8a1538;
}

.ai-widget-close {
  border: 1px solid #d8a8b8;
  border-radius: 0.55rem;
  background: #fff;
  color: #8a1538;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.3rem 0.55rem;
}

.ai-widget-frame {
  width: 100%;
  height: calc(100% - 44px);
  border: 0;
}

@media (max-width: 640px) {
  .ai-widget-btn {
    padding: 0 0.75rem;
    height: 52px;
  }

  .ai-widget-label {
    font-size: 0.7rem;
  }
}

