/* ==========================================================================
   KAMAJU ONE — MAIN STYLESHEET
   ========================================================================== */

:root {
  --font-display: 'Outfit', sans-serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --color-navy-dark: #062d61;
  --color-navy-footer: rgba(10, 54, 104, 0.95);
  --color-blue-accent: #0563c1;
  --color-orange-accent: #f97316;
  --color-text-dark: #0f172a;
  --color-text-muted: #334155;
}

* {
  box-sizing: border-box;
}

html {
  font-family: var(--font-sans);
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  background-color: #0b4a8f;
  color: var(--color-text-dark);
  overflow-x: hidden;
}

.font-display {
  font-family: var(--font-display);
}

/* ---------- Portal Atmospheric Background ---------- */
.kamaju-portal-bg {
  position: relative;
  min-height: 100vh;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow-x: hidden;
  background:
    radial-gradient(ellipse 75% 45% at 15% 18%, rgba(11, 134, 238, 0.92) 0%, rgba(11, 134, 238, 0) 70%),
    radial-gradient(ellipse 70% 45% at 88% 20%, rgba(245, 158, 11, 0.88) 0%, rgba(245, 158, 11, 0) 70%),
    radial-gradient(ellipse 80% 40% at 50% 42%, rgba(224, 244, 255, 0.95) 0%, rgba(224, 244, 255, 0) 72%),
    radial-gradient(ellipse 75% 40% at 14% 78%, rgba(56, 189, 248, 0.72) 0%, rgba(56, 189, 248, 0) 72%),
    radial-gradient(ellipse 75% 40% at 88% 82%, rgba(249, 115, 22, 0.82) 0%, rgba(249, 115, 22, 0) 70%),
    linear-gradient(125deg, #0b76d1 0%, #52b8e8 34%, #cfe6c4 56%, #f5b942 82%, #f97316 100%);
}

/* ---------- Top Glassmorphic Navigation Bar ---------- */
.topbar-wrapper {
  position: relative;
  z-index: 20;
  width: 100%;
  padding: 12px 16px 0;
}

.kamaju-topbar {
  max-width: 1024px;
  margin: 0 auto;
  height: 56px;
  padding: 0 20px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #ffffff;
  background: linear-gradient(90deg, rgba(13, 66, 125, 0.88) 0%, rgba(23, 102, 179, 0.84) 55%, rgba(16, 75, 138, 0.88) 100%);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: 0 8px 24px rgba(7, 36, 74, 0.22);
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-lockup-sm {
  display: flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  color: #ffffff;
}

.brand-primary-sm {
  font-family: var(--font-display);
  font-weight: 900;
  font-style: italic;
  font-size: 18px;
  letter-spacing: -0.02em;
}

.brand-badge-sm {
  font-family: var(--font-display);
  font-weight: 900;
  font-style: italic;
  font-size: 12px;
  background: linear-gradient(to bottom, #ff922b, #ea580c);
  color: #ffffff;
  padding: 2px 8px;
  border-radius: 6px;
  transform: skewX(-8deg);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.topbar-divider {
  width: 1px;
  height: 16px;
  background: rgba(255, 255, 255, 0.4);
}

.topbar-subtitle {
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.95);
}

/* ---------- Main Content & Hero ---------- */
.portal-main {
  position: relative;
  z-index: 10;
  flex: 1;
  width: 100%;
  padding: 24px 16px 48px;
}

.hero-section {
  max-width: 768px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-logo {
  width: 150px;
  height: 150px;
  object-fit: contain;
  margin-bottom: 6px;
  filter: drop-shadow(0 3px 8px rgba(0, 0, 0, 0.14));
}

.hero-brand-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.hero-brand-primary {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 900;
  font-style: italic;
  font-size: 46px;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--color-navy-dark);
  text-shadow: 0 2px 4px rgba(255, 255, 255, 0.7);
}

.hero-brand-badge {
  font-family: var(--font-display);
  font-weight: 900;
  font-style: italic;
  font-size: 32px;
  line-height: 1;
  background: linear-gradient(to bottom, #ff8a1f, #ea580c);
  color: #ffffff;
  padding: 6px 16px;
  border-radius: 12px;
  transform: skewX(-10deg);
  box-shadow: 0 6px 16px rgba(234, 88, 12, 0.32);
}

.hero-descriptor-row {
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  width: 100%;
  max-width: 512px;
}

.hairline-left {
  height: 1.5px;
  flex: 1;
  background: linear-gradient(to right, transparent, rgba(15, 41, 74, 0.7));
}

.hairline-right {
  height: 1.5px;
  flex: 1;
  background: linear-gradient(to left, transparent, rgba(15, 41, 74, 0.7));
}

.hero-descriptor-text {
  margin: 0;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.22em;
  color: #0f294a;
  text-transform: uppercase;
  white-space: nowrap;
}

.welcome-box {
  margin-top: 20px;
  max-width: 672px;
}

.welcome-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 28px;
  line-height: 1.25;
  color: var(--color-text-dark);
}

.welcome-brand-primary {
  font-style: italic;
  color: var(--color-blue-accent);
}

.welcome-brand-badge {
  font-style: italic;
  color: var(--color-orange-accent);
}

.welcome-subtitle {
  margin: 4px 0 0;
  font-size: 16px;
  font-weight: 500;
  color: var(--color-text-muted);
}

/* ---------- 3x3 Frosted Service Card Grid ---------- */
.services-section {
  margin: 28px auto 0;
  max-width: 820px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.kamaju-card {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  padding: 24px 20px 20px;
  min-height: 215px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.94) 0%, rgba(240, 248, 255, 0.86) 100%);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.75);
  box-shadow:
    0 10px 28px -6px rgba(10, 46, 92, 0.16),
    0 2px 6px rgba(10, 46, 92, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.kamaju-card:hover {
  transform: translateY(-4px);
  box-shadow:
    0 18px 36px -8px rgba(10, 46, 92, 0.24),
    0 4px 10px rgba(10, 46, 92, 0.09),
    inset 0 1px 0 rgba(255, 255, 255, 1);
}

.kamaju-card:active {
  transform: scale(0.98);
}

.card-corner-ribbon {
  position: absolute;
  top: 0;
  right: 0;
  width: 40px;
  height: 40px;
  clip-path: polygon(15% 0, 100% 0, 100% 85%);
}

.card-icon-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 8px 0;
  transition: transform 0.2s ease;
}

.kamaju-card:hover .card-icon-wrap {
  transform: scale(1.05);
}

.card-icon-svg {
  width: 80px;
  height: 80px;
}

.card-title-wrap {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 8px;
}

.card-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  line-height: 1.15;
  color: var(--color-text-dark);
}

.kamaju-arrow-pill {
  margin-top: 12px;
  width: 56px;
  height: 24px;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: linear-gradient(180deg, #5da7e6 0%, #2a78c4 100%);
  box-shadow:
    0 3px 8px rgba(21, 94, 168, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.45);
  transition: filter 0.2s ease;
}

.kamaju-card:hover .kamaju-arrow-pill {
  filter: brightness(1.1);
}

/* ---------- Footer ---------- */
.portal-footer {
  position: relative;
  z-index: 20;
  width: 100%;
  padding: 0 16px;
}

.footer-inner {
  max-width: 1024px;
  margin: 0 auto;
  background: var(--color-navy-footer);
  backdrop-filter: blur(12px);
  color: #ffffff;
  border-top-left-radius: 28px;
  border-top-right-radius: 28px;
  padding: 16px 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 -6px 24px rgba(6, 33, 77, 0.28);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px;
  font-size: 14px;
}

.footer-brand {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: 0.03em;
}

.footer-sep {
  color: rgba(255, 255, 255, 0.45);
}

/* ---------- Responsive (Mobile) ---------- */
@media (max-width: 640px) {

  .topbar-divider,
  .topbar-subtitle {
    display: none;
  }

  .hero-brand-primary {
    font-size: 32px;
  }

  .hero-brand-badge {
    font-size: 24px;
    padding: 4px 12px;
  }

  .hero-descriptor-text {
    font-size: 10px;
  }

  .welcome-title {
    font-size: 20px;
  }

  .welcome-subtitle {
    font-size: 13px;
  }

  .services-grid {
    gap: 10px;
  }

  .kamaju-card {
    border-radius: 18px;
    padding: 14px 8px 12px;
    min-height: 150px;
  }

  .card-corner-ribbon {
    width: 28px;
    height: 28px;
  }

  .card-icon-svg {
    width: 48px;
    height: 48px;
  }

  .card-title {
    font-size: 13px;
  }

  .kamaju-arrow-pill {
    width: 44px;
    height: 20px;
    margin-top: 8px;
  }

  .footer-inner {
    font-size: 11px;
    gap: 8px;
    padding: 14px 16px;
  }
}