/* ========== Tailwind CDN Config ========== */
/* Inline config is set in HTML via tailwind.config */

/* ========== Custom Properties ========== */
:root {
  --navy: #0F1D3D;
  --navy-light: #1A3059;
  --navy-lighter: #243B6E;
  --terracotta: #C2694B;
  --terracotta-light: #D4836A;
  --terracotta-dark: #A8553A;
  --terracotta-pale: #FDF0EB;
  --gray-light: #F5F5F5;
  --gray-text: #4A4A4A;
  --gray-muted: #8A8A8A;
  --gold: #C9A96E;
}

html { scroll-behavior: smooth; }
body { font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, sans-serif; color: var(--gray-text); -webkit-font-smoothing: antialiased; }
::selection { background: var(--terracotta); color: #fff; }

/* ========== Batik BG ========== */
.batik-bg {
  background-image: url('../images/batik-pattern.svg');
  background-repeat: repeat;
  background-size: 400px;
}

/* ========== Animations ========== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}
@keyframes floatSlow {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-15px) rotate(2deg); }
}
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(194, 105, 75, 0.4); }
  50% { box-shadow: 0 0 0 12px rgba(194, 105, 75, 0); }
}
@keyframes drawLine {
  from { stroke-dashoffset: 1000; }
  to { stroke-dashoffset: 0; }
}
@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.anim-fade-in-up { animation: fadeInUp 0.7s ease-out forwards; }
.anim-fade-in { animation: fadeIn 0.8s ease-out forwards; }
.anim-float { animation: float 6s ease-in-out infinite; }
.anim-float-slow { animation: floatSlow 8s ease-in-out infinite; }
.anim-pulse-glow { animation: pulseGlow 2s ease-in-out infinite; }
.anim-spin { animation: spin 1s linear infinite; }

/* Stagger delays */
.delay-100 { animation-delay: 0.1s; opacity: 0; }
.delay-200 { animation-delay: 0.2s; opacity: 0; }
.delay-300 { animation-delay: 0.3s; opacity: 0; }
.delay-400 { animation-delay: 0.4s; opacity: 0; }
.delay-500 { animation-delay: 0.5s; opacity: 0; }

/* ========== Scroll Reveal ========== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease-out, transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ========== Hover Lift Card ========== */
.hover-lift {
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              box-shadow 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.hover-lift:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px -12px rgba(15, 29, 61, 0.15);
}

/* ========== Gradient Backgrounds ========== */
.gradient-navy {
  background: linear-gradient(135deg, #0F1D3D 0%, #1A3059 50%, #243B6E 100%);
}
.gradient-hero {
  background: linear-gradient(160deg, #0F1D3D 0%, #0F1D3D 40%, #1A3059 70%, #0F1D3D 100%);
}
.gradient-terracotta {
  background: linear-gradient(135deg, #C2694B 0%, #D4836A 100%);
}
.gradient-text {
  background: linear-gradient(135deg, #C2694B 0%, #C9A96E 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ========== Button Styles ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.025em;
  border-radius: 0.125rem;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}
.btn-primary {
  background: var(--terracotta);
  color: #fff;
  box-shadow: 0 4px 14px rgba(194, 105, 75, 0.2);
}
.btn-primary:hover {
  background: var(--terracotta-dark);
  box-shadow: 0 8px 25px rgba(194, 105, 75, 0.3);
}
.btn-gradient {
  background: linear-gradient(135deg, var(--terracotta), var(--terracotta-light));
  color: #fff;
  box-shadow: 0 4px 14px rgba(194, 105, 75, 0.2);
}
.btn-gradient:hover {
  background: linear-gradient(135deg, var(--terracotta-dark), var(--terracotta));
  box-shadow: 0 8px 25px rgba(194, 105, 75, 0.3);
}
.btn-outline {
  border: 2px solid rgba(255,255,255,0.3);
  color: #fff;
}
.btn-outline:hover {
  background: #fff;
  color: var(--navy);
  border-color: #fff;
}
.btn-dark-outline {
  border: 2px solid var(--navy);
  color: var(--navy);
}
.btn-dark-outline:hover {
  background: var(--navy);
  color: #fff;
}
.btn-shimmer::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
  transform: translateX(-100%);
  transition: transform 0.7s;
}
.btn-shimmer:hover::after {
  transform: translateX(100%);
}

/* ========== Navbar ========== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  transition: all 0.5s ease;
}
.navbar.scrolled {
  background: rgba(15, 29, 61, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 30px rgba(0,0,0,0.2);
}
.nav-link {
  position: relative;
  transition: color 0.3s;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 16px;
  height: 2px;
  background: var(--terracotta);
  border-radius: 2px;
  transition: transform 0.3s ease;
}
.nav-link:hover::after,
.nav-link.active::after {
  transform: translateX(-50%) scaleX(1);
}

/* ========== Mobile Menu ========== */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--navy);
  z-index: 45;
  display: flex;
  align-items: center;
  transform: translateY(-100%);
  transition: transform 0.4s ease;
}
.mobile-menu.open {
  transform: translateY(0);
}

/* ========== Section Title ========== */
.section-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--terracotta);
}
.title-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
}
.title-divider span:nth-child(1),
.title-divider span:nth-child(5) { width: 2rem; height: 1px; background: rgba(194,105,75,0.3); }
.title-divider span:nth-child(3) { width: 3rem; height: 1px; background: var(--terracotta); }
.title-divider span:nth-child(2),
.title-divider span:nth-child(4) { width: 6px; height: 6px; border-radius: 50%; background: var(--terracotta); }

/* ========== Stat Counter ========== */
.stat-number {
  font-size: 3rem;
  font-weight: 700;
  color: var(--navy);
  font-variant-numeric: tabular-nums;
}

/* ========== Card Accent ========== */
.card-accent {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--terracotta), var(--gold));
  transform: scaleX(0);
  transition: transform 0.5s ease;
  transform-origin: left;
}
.hover-lift:hover .card-accent {
  transform: scaleX(1);
}

/* ========== Corner Decoration ========== */
.batik-corner {
  position: relative;
}
.batik-corner::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 120px; height: 120px;
  background-image: url('../images/batik-pattern.svg');
  background-size: 120px;
  opacity: 0.04;
  pointer-events: none;
}

/* ========== Glow Orbs ========== */
.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
}

/* ========== Form Styles ========== */
.form-input {
  width: 100%;
  padding: 0.75rem 0.75rem 0.75rem 2.5rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.125rem;
  color: var(--gray-text);
  background: #fff;
  font-size: 0.875rem;
  transition: all 0.2s;
}
.form-input:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 2px rgba(15,29,61,0.06);
}
.form-input::placeholder { color: #bbb; }

/* ========== Loading/Shimmer ========== */
.shimmer-bg {
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.08) 50%, transparent 100%);
  background-size: 200% 100%;
  animation: shimmer 3s ease-in-out infinite;
}

/* ========== SVG accent lines ========== */
.draw-line {
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
}
.draw-line.animate {
  animation: drawLine 2s ease-out forwards;
}
