@import "tailwindcss";
@import "tw-animate-css";
@import "shadcn/tailwind.css";

/* Enable dark mode */
@custom-variant dark (&:is(.dark *));

/* Map shadcn tokens */
@theme inline {
  --color-background: var(--background);
  --color-foreground: var(--foreground);

  --color-primary: var(--primary);
  --color-primary-foreground: var(--primary-foreground);

  --color-secondary: var(--secondary);
  --color-secondary-foreground: var(--secondary-foreground);

  --color-muted: var(--muted);
  --color-muted-foreground: var(--muted-foreground);

  --color-border: var(--border);
  --color-input: var(--input);
  --color-ring: var(--ring);

  --color-card: var(--card);
  --color-card-foreground: var(--card-foreground);

  --radius: var(--radius);
}

/* =========================
   🌞 LIGHT THEME (BLUE BRAND)
   ========================= */
:root {
  /* base */
  --background: oklch(0.99 0 0);
  --foreground: oklch(0.2 0 0);

  /* cards */
  --card: oklch(1 0 0);
  --card-foreground: oklch(0.2 0 0);

  /* 🔥 PRIMARY (BLUE BRAND) */
  /* --primary: oklch(51.375% 0.2344 262.133); main blue */
 --primary: oklch(57.252% 0.15566 149.106);
  --primary-foreground: oklch(0.98 0 0); /* white text */

  /* secondary (light gray tone) */
  --secondary: oklch(0.95 0 0);
  --secondary-foreground: oklch(0.25 0 0);

  /* muted text (for paragraphs) */
  --muted: oklch(0.96 0 0);
  --muted-foreground: oklch(0.5 0 0);

  /* UI elements */
  --border: oklch(0.9 0 0);
  --input: oklch(0.9 0 0);
  --ring: oklch(0.65 0.2 240);

  /* radius */
  --radius: 0.6rem;
}

/* =========================
   🌙 DARK THEME (BLUE GLOW)
   ========================= */
.dark {
  --background: oklch(0.15 0 0);
  --foreground: oklch(0.98 0 0);

  --card: oklch(0.2 0 0);
  --card-foreground: oklch(0.98 0 0);

  /* brighter blue for dark */
  /* --primary: oklch(67.184% 0.16684 244.697); */
    --primary: oklch(66.197% 0.18126 150.26);
  --primary-foreground: oklch(0.1 0 0);

  --secondary: oklch(0.25 0 0);
  --secondary-foreground: oklch(0.95 0 0);

  --muted: oklch(0.25 0 0);
  --muted-foreground: oklch(0.7 0 0);

  --border: oklch(1 0 0 / 10%);
  --input: oklch(1 0 0 / 15%);
  --ring: oklch(0.75 0.22 240);
}

/* =========================
   🎯 GLOBAL BASE STYLES
   ========================= */
@layer base {
  html {
    scroll-behavior: smooth;
  }

  * {
    @apply border-border outline-ring/50;
  }

  body {
    @apply bg-background text-foreground;
  }

  html {
    @apply font-sans;
  }

  /* Headings consistent */
  h1, h2, h3, h4 {
    @apply text-foreground font-bold;
  }

  /* Paragraphs consistent */
  p {
    @apply text-muted-foreground;
  }
}

/* =========================
   📱 GLOBAL SECTION PADDING
   (Responsive across all devices)
   ========================= */
@layer components {
  /* Mobile First Approach */
  section {
    /* Mobile: 60px vertical, 16px horizontal */
    @apply py-16 px-4;
    scroll-margin-top: 80px; /* offset for sticky header height */
  }

  /* Tablets: 80px vertical, 20px horizontal */
  @media (min-width: 640px) {
    section {
      @apply py-20 px-5;
    }
  }

  /* Medium screens: 100px vertical, 24px horizontal */
  @media (min-width: 768px) {
    section {
      @apply py-25 px-6;
    }
  }

  /* Large screens: 120px vertical, 32px horizontal */
  @media (min-width: 1024px) {
    section {
      @apply py-30 px-8;
    }
  }

  /* XL screens: 140px vertical, 40px horizontal */
  @media (min-width: 1280px) {
    section {
      @apply py-35 px-10;
    }
  }
}

/* Bijaja animated logo styles */
.Bijaja-Css-Logo {
  display: block;
  width: fit-content;
}

.animated-text-box * {
  box-sizing: border-box;
}

.animated-text-box {
  display: flex;
  justify-content: center;
  align-items: center;
  width: fit-content;
  height: 45px;
  border-radius: 32px;
}

.letters {
  display: flex;
  flex-flow: row nowrap;
  margin-top: -10px;
}

.letter {
  display: flex;
  margin-right: 2px;
}

.letter.letter-b {
  align-items: flex-end;
  justify-content: center;
}

.letter-b1 {
  width: 6px;
  height: 32px;
  border-radius: 0px 50px 0px 50px;
  background-color: #286ad4;
}

.letter-b2 {
  width: 26px;
  height: 26px;
  border-radius: 100px;
  margin-left: -4px;
  margin-bottom: -2px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-flow: column;
  position: relative;
  background: #5294ff;
}

.eyes {
  display: flex;
  justify-content: space-evenly;
  margin-top: 0;
  overflow: hidden;
}

.eye {
  width: 11px;
  height: 11px;
  border-radius: 50px;
  background: white;
  border-top: 0.5px solid #000000;
  border-bottom: 0.5px solid black;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0.5px;
  margin-bottom: 1.5px;
  overflow: hidden;
  animation: jiffy 5s infinite ease-in-out both;
  animation-delay: 3s;
  position: relative;
}

@keyframes jiffy {
  2% { height: 0px; }
  4% { height: 11px; }
  6% { height: 0px; }
  10% { height: 11px; }
}

.eye-bowl {
  width: 8px;
  height: 8px;
  border-radius: 10px;
  position: absolute;
  left: 1.5px;
  top: 1.5px;
  animation: eye-bowl 15s infinite ease-in-out both;
  overflow: hidden;
}

@keyframes eye-bowl {
  0% { left: 1.4px; top: 2.4px; }
  10% { left: 2.4px; top: 2.4px; }
  15% { left: 2.4px; top: 1.4px; }
  20% { left: 1.4px; top: 2.4px; }
  25% { left: 1.4px; top: 0.4px; }
  30% { left: 0; top: 1.4px; }
  35% { left: 0; top: 2.2px; }
  40% { left: 1px; top: 2.8px; }
  45% { left: 2.4px; top: 2.2px; }
  50% { left: 2.4px; top: 2.4px; }
  60% { left: 1.5px; top: 1.5px; }
}

.eye-lense {
  border: 2px solid #31c663;
  border-radius: 10px;
  height: 100%;
  width: 100%;
  background: black;
  overflow: hidden;
  animation: border-clr 10s ease 0s infinite;
}

.lense-dot {
  width: 2px;
  height: 2px;
  background: #fff;
  border-radius: 10px;
  border: 0.2px solid black;
  float: right;
}

.mouth {
  background: #0e0e0e;
  height: 1px;
  width: 3px;
  border-radius: 0px 0px 20px 20px;
  margin: 0 auto;
  margin-top: 1px;
  border: 0.5px solid #286ad4;
  animation: mouth 22s infinite ease-in-out both;
  animation-delay: 3s;
}

@keyframes mouth {
  1% { height: 4px; width: 6px; border-radius: 0px 0px 20px 20px; }
  2% { height: 5px; width: 5px; border-radius: 25px; }
  6% { height: 5px; width: 5px; border-radius: 25px; }
  6.5% { height: 1px; width: 3px; border-radius: 0px 0px 20px 20px; }
}

.hello {
  font-size: 9px;
  border-radius: 0px 5px 5px 5px;
  position: absolute;
  bottom: -6px;
  right: -23px;
  padding: 0px 5px;
  background: #000000;
  color: #fff;
  font-weight: 600;
  opacity: 0;
  animation: hello 22s infinite ease-in-out both;
  animation-delay: 3s;
  font-family: sans-serif;
}

@keyframes hello {
  2% { opacity: 1; }
  3% { opacity: 1; }
  8% { opacity: 0; }
}

.letter.letter-i {
  justify-content: flex-end;
  align-items: center;
  flex-flow: column;
}

.letter-i1 {
  width: 7px;
  height: 7px;
  border-radius: 30px;
  margin-bottom: 1px;
  background: #ff7a6d;
}

.letter-i2 {
  width: 6px;
  height: 16px;
  border-radius: 25px 0px 25px 0px;
  background: #ea4333;
}

@keyframes border-clr {
  25% { border-color: #31c663; }
  50% { border-color: #ff7a6d; }
  75% { border-color: #f9d66c; }
  100% { border-color: #31c663; }
}

.letter-j {
  flex-flow: column;
  justify-content: flex-end;
  align-items: flex-end;
  margin-bottom: -8px;
  margin-left: -7px;
}

.letter-j1 {
  width: 8px;
  height: 8px;
  border-radius: 30px;
  margin-bottom: 1px;
  background: #fbbc05;
}

.letter-j2 {
  width: 6px;
  height: 28px;
  border-radius: 25px 0px 25px 0px;
  background: #f9d66c;
}

.letter-j3 {
  width: 14px;
  height: 6px;
  border-radius: 15px 0px 20px 0px;
  margin-left: 0px;
  margin-top: -6px;
  background: #fbbc05;
}

.letter-a {
  flex-flow: row nowrap;
  align-items: flex-end;
}

.letter.letter-a:nth-last-child(1) {
  margin: 0;
}

.letter-a1 {
  width: 20px;
  height: 20px;
  border-radius: 25px;
  border: 6px solid #34a85a;
}

.letter-a2 {
  width: 6px;
  border-radius: 0px 6px 0px 5px;
  height: 19px;
  margin-left: -5px;
  margin-bottom: 0px;
  background: #31c663;
}

.letter-j:nth-child(5) .letter-j1 {
  background: #5294ff;
}

.letter-j:nth-child(5) .letter-j2 {
  background: #286ad4;
}

.letter-j:nth-child(5) .letter-j3 {
  background: #5294ff;
}

.letter-a:nth-child(6) .letter-a1 {
  border: 6px solid #ea4333;
}

.letter-a:nth-child(6) .letter-a2 {
  background: #ff7a6d;
}

/* =========================
   🎨 CTA ANIMATED BACKGROUND (Hero-style)
   ========================= */
@layer utilities {
  /* Hero-style animated background - Light Mode */
  .cta-hero-bg {
    background: linear-gradient(135deg,
      var(--primary) 0%,
      var(--primary)/90 25%,
      var(--primary)/85 50%,
      var(--primary)/90 75%,
      var(--primary) 100%
    );
    background-size: 200% 200%;
    animation: heroGradient 8s ease infinite;
    position: relative;
    overflow: hidden;
  }

  /* Dark mode hero-style background */
  .dark .cta-hero-bg {
    background: linear-gradient(135deg,
      var(--primary) 0%,
      var(--primary)/80 25%,
      var(--primary)/70 50%,
      var(--primary)/80 75%,
      var(--primary) 100%
    );
  }

  @keyframes heroGradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
  }

  /* Blurred orbs - Light Mode */
  .cta-hero-bg::before {
    content: '';
    position: absolute;
    top: -100px;
    left: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(60px);
    animation: floatOrb1 12s ease-in-out infinite;
  }

  .cta-hero-bg::after {
    content: '';
    position: absolute;
    bottom: -100px;
    right: -100px;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.25) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(50px);
    animation: floatOrb2 15s ease-in-out infinite;
  }

  /* Dark mode blurred orbs */
  .dark .cta-hero-bg::before {
    background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 70%);
  }

  .dark .cta-hero-bg::after {
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
  }

  @keyframes floatOrb1 {
    0%, 100% {
      transform: translate(0, 0) scale(1);
    }
    33% {
      transform: translate(30px, -30px) scale(1.1);
    }
    66% {
      transform: translate(-20px, 20px) scale(0.9);
    }
  }

  @keyframes floatOrb2 {
    0%, 100% {
      transform: translate(0, 0) scale(1);
    }
    33% {
      transform: translate(-25px, 25px) scale(0.95);
    }
    66% {
      transform: translate(35px, -20px) scale(1.05);
    }
  }

  /* Additional floating orbs */
  .cta-hero-orb-1 {
    position: absolute;
    top: 20%;
    right: 10%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(40px);
    animation: floatOrb3 10s ease-in-out infinite;
    pointer-events: none;
  }

  .cta-hero-orb-2 {
    position: absolute;
    bottom: 30%;
    left: 15%;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(35px);
    animation: floatOrb4 13s ease-in-out infinite;
    pointer-events: none;
  }

  /* Dark mode additional orbs */
  .dark .cta-hero-orb-1 {
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
  }

  .dark .cta-hero-orb-2 {
    background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 70%);
  }

  @keyframes floatOrb3 {
    0%, 100% {
      transform: translate(0, 0) scale(1);
    }
    50% {
      transform: translate(-20px, 30px) scale(1.1);
    }
  }

  @keyframes floatOrb4 {
    0%, 100% {
      transform: translate(0, 0) scale(1);
    }
    50% {
      transform: translate(25px, -25px) scale(0.9);
    }
  }

  /* Shimmer overlay */
  .cta-hero-shimmer {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
      90deg,
      transparent,
      rgba(201, 179, 201, 0.107),
      transparent
    );
    animation: heroShimmer 10s ease-in-out infinite;
    pointer-events: none;
  }

  .dark .cta-hero-shimmer {
    background: linear-gradient(
      90deg,
      transparent,
      rgba(255, 255, 255, 0.04),
      transparent
    );
  }

  @keyframes heroShimmer {
    0% { left: -100%; }
    100% { left: 100%; }
  }

  /* Pulse glow effect */
  .cta-hero-glow {
    animation: heroGlow 3s ease-in-out infinite;
  }

  @keyframes heroGlow {
    0%, 100% {
      box-shadow: 0 0 30px rgba(var(--primary), 0.4), 0 0 60px rgba(var(--primary), 0.2);
    }
    50% {
      box-shadow: 0 0 50px rgba(var(--primary), 0.6), 0 0 100px rgba(var(--primary), 0.3);
    }
  }

  /* Dark mode enhanced glow */
  .dark .cta-hero-glow {
    animation: heroGlowDark 3s ease-in-out infinite;
  }

  @keyframes heroGlowDark {
    0%, 100% {
      box-shadow: 0 0 40px rgba(var(--primary), 0.5), 0 0 80px rgba(var(--primary), 0.25);
    }
    50% {
      box-shadow: 0 0 60px rgba(var(--primary), 0.7), 0 0 120px rgba(var(--primary), 0.35);
    }
  }

  /* Grid pattern overlay */
  .cta-hero-grid {
    position: absolute;
    inset: 0;
    background-image:
      linear-gradient(rgb(245, 243, 247) 1px, transparent 1px),
      linear-gradient(90deg, rgb(244, 241, 246) 1px, transparent 1px);
    background-size: 40px 40px;
    animation: gridMove 20s linear infinite;
    pointer-events: none;
  }

  .dark .cta-hero-grid {
    background-image:
      linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
      linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  }

  @keyframes gridMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(-40px, -40px); }
  }
}
