@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&display=swap');

@tailwind base;
@tailwind components;
@tailwind utilities;

:root {
  --primary: #6B21A8; /* Deep Violet from Logo */
  --secondary: #9333EA; /* Medium Purple from Logo */
  --accent: #F5E6F0; /* Soft Pink from Logo */
  --gold: #F59E0B;
}

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  overflow-x: hidden;
  scroll-behavior: smooth;
  background-color: #fafafa;
}

h1, h2, h3, h4, h5, h6, .font-outfit {
  font-family: 'Outfit', sans-serif;
  letter-spacing: -0.02em;
}

.font-jakarta {
  font-family: 'Plus Jakarta Sans', sans-serif;
}

/* Glassmorphism utilities */
.glass {
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.05);
}

.glass-dark {
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

.glass-card {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 10px 40px -10px rgba(0,0,0,0.08);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--secondary);
}

/* Gradient text */
.text-gradient {
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-image: linear-gradient(135deg, var(--primary), var(--secondary));
}

.text-gradient-gold {
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-image: linear-gradient(135deg, #F59E0B, #FBBF24);
}

/* Floating WhatsApp Button Animation */
@keyframes pulse-ring {
  0% { transform: scale(0.8); box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
  100% { transform: scale(0.8); box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 100;
  animation: pulse-ring 2s infinite;
}

/* Dropdown Menu */
.group:hover .group-hover\:block { display: block; }
.nav-link { position: relative; }
.nav-link::after {
  content: ''; position: absolute; width: 0; height: 2px;
  bottom: -4px; left: 0; background-color: var(--secondary); transition: width 0.3s ease;
}
.nav-link:hover::after, .nav-link.active::after { width: 100%; }

/* Navbar scroll effect */
.scrolled {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

/* Hero Modern Background Overlay */
.hero-overlay {
  background: radial-gradient(circle at top right, rgba(147, 51, 234, 0.2), transparent 50%),
              radial-gradient(circle at bottom left, rgba(107, 33, 168, 0.4), transparent 50%),
              linear-gradient(to bottom, rgba(255,255,255,0.1), rgba(255,255,255,0.95));
}

/* Card hover effects - Modern 3D Floating */
.hover-card-modern {
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.hover-card-modern:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(147, 51, 234, 0.1);
}

/* Bento Grid Specific */
.bento-item {
  border-radius: 1.5rem;
  overflow: hidden;
  position: relative;
}

/* Animated gradient border */
.gradient-border-mask {
  position: relative;
  background: white;
  background-clip: padding-box;
  border: 1px solid transparent;
  border-radius: 1.5rem;
}

.gradient-border-mask::before {
  content: '';
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  z-index: -1;
  margin: -1px;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(107,33,168,0.5), rgba(245,230,240,0.8), rgba(147,51,234,0.5));
}

/* Glowing Button */
.btn-glow {
  position: relative;
}
.btn-glow::after {
  content: '';
  position: absolute;
  inset: -2px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  z-index: -1;
  border-radius: inherit;
  filter: blur(8px);
  opacity: 0.5;
  transition: opacity 0.3s ease;
}
.btn-glow:hover::after {
  opacity: 0.8;
}

/* Blob Animation */
@keyframes blob {
  0% { transform: translate(0px, 0px) scale(1); }
  33% { transform: translate(30px, -50px) scale(1.1); }
  66% { transform: translate(-20px, 20px) scale(0.9); }
  100% { transform: translate(0px, 0px) scale(1); }
}

.animate-blob {
  animation: blob 7s infinite;
}
.animation-delay-2000 {
  animation-delay: 2s;
}
.animation-delay-4000 {
  animation-delay: 4s;
}

/* SaaS Custom Aesthetic Utilities */
.navbar-pill {
  max-width: 1200px;
  margin: 1.5rem auto;
  border-radius: 9999px !important;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.1);
  padding: 0.5rem 1.5rem;
  top: 0;
  left: 1rem;
  right: 1rem;
}

.bg-deep-custom {
  background: linear-gradient(135deg, #0B0F19 0%, #17112E 100%);
}

.bg-pattern-dots {
  background-image: radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 24px 24px;
}

.bento-elevated {
  border-radius: 2rem;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.4);
  position: relative;
  overflow: hidden;
  transition: all 0.4s ease;
}

.bento-elevated:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 40px 80px -20px rgba(147, 51, 234, 0.5);
}

.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.5;
  z-index: 0;
}

.form-glass {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 2rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.input-glass {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: white;
  border-radius: 0.75rem;
}
.input-glass:focus {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--secondary);
  outline: none;
  box-shadow: 0 0 0 2px rgba(147, 51, 234, 0.25);
}
.input-glass::placeholder {
  color: rgba(255, 255, 255, 0.4);
}


/* Fix for bg-deep-custom */
.bg-deep-custom.bg-pattern-dots {
  background: radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px), linear-gradient(135deg, #0B0F19 0%, #17112E 100%) !important;
  background-size: 24px 24px, 100% 100% !important;
}

/* ═══════════════════════════════════════════════════
   AVALON-STYLE HERO CAROUSEL
   ═══════════════════════════════════════════════════ */

/* Sky Background */
.hero-sky-bg {
  background:
    radial-gradient(ellipse at 20% 50%, rgba(255,140,80,0.35) 0%, transparent 55%),
    radial-gradient(ellipse at 80% 20%, rgba(180,100,220,0.4) 0%, transparent 50%),
    radial-gradient(ellipse at 60% 80%, rgba(255,160,60,0.25) 0%, transparent 50%),
    linear-gradient(160deg,
      #3a1a6e 0%,
      #6b2fa0 18%,
      #c06bb0 36%,
      #e8956d 55%,
      #f2c08a 72%,
      #d4a0d0 88%,
      #8b3fa8 100%
    );
}

/* Slides container — relative so absolute children stack in it */
.hero-slides-wrap {
  position: relative;
  width: 100%;
}

/* Slide wrapper */
.hero-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.8s cubic-bezier(0.4,0,0.2,1);
}
.hero-slide.active {
  opacity: 1;
  pointer-events: auto;
}

/* Floating card */
.hero-card {
  position: relative;
  width: clamp(300px, 72vw, 980px);
  aspect-ratio: 16 / 7;
  border-radius: 2.5rem;
  overflow: hidden;
  box-shadow:
    0 30px 80px -10px rgba(40,0,80,0.45),
    0 0 0 2px rgba(255,255,255,0.12);
  transform: perspective(1200px) rotateX(1.5deg);
  transition: transform 0.6s ease;
}
.hero-card:hover {
  transform: perspective(1200px) rotateX(0deg) translateY(-4px);
}

/* Banner image inside card */
.hero-card-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 8s ease;
}
.hero-slide.active .hero-card-img {
  transform: scale(1.04);
}

/* Text overlay on left side of card */
.hero-card-text {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(1.2rem, 4vw, 3rem);
  padding-right: 52%;
  background: linear-gradient(
    to right,
    rgba(255,255,255,0.88) 45%,
    rgba(255,255,255,0.4) 70%,
    transparent 100%
  );
  border-radius: inherit;
}
.hero-card-title {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: clamp(1rem, 2.4vw, 1.7rem);
  color: #1a0a2e;
  line-height: 1.3;
  margin-bottom: 0.6em;
}
.hero-card-subtitle {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 600;
  font-size: clamp(0.78rem, 1.5vw, 1.1rem);
  color: #3b1a6b;
  line-height: 1.45;
  margin-bottom: 1.4em;
}

/* Gradient CTA button */
.hero-card-btn {
  display: inline-block;
  background: linear-gradient(90deg, #6B21A8 0%, #9333EA 100%);
  padding: 3px;
  border-radius: 999px;
  width: max-content;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 6px 20px rgba(107,33,168,0.4);
}
.hero-card-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(107,33,168,0.55);
}
.hero-card-btn-inner {
  display: block;
  background: linear-gradient(90deg, #7c3aed 0%, #a855f7 100%);
  border: 1.5px solid rgba(255,255,255,0.6);
  border-radius: 999px;
  padding: clamp(0.45rem, 1vw, 0.7rem) clamp(1rem, 2.5vw, 1.8rem);
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: clamp(0.65rem, 1.2vw, 0.9rem);
  color: #fff;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Arrow nav buttons */
.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 30;
  background: none;
  border: none;
  cursor: pointer;
  opacity: 0.75;
  transition: opacity 0.2s, transform 0.2s;
  padding: 0.5rem;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.35));
}
.hero-arrow:hover {
  opacity: 1;
  transform: translateY(-50%) scale(1.1);
}
.hero-arrow-prev { left: clamp(0.5rem, 2.5vw, 2rem); }
.hero-arrow-next { right: clamp(0.5rem, 2.5vw, 2rem); }
.hero-arrow svg { width: clamp(40px, 6vw, 72px); height: clamp(40px, 6vw, 72px); }

/* Dot indicators */
.hero-indicators {
  position: absolute;
  bottom: clamp(1rem, 3vh, 2.5rem);
  left: 50%;
  transform: translateX(-50%);
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 1.2rem;
}
.hero-indicator-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
}
.hero-indicator-num {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 0.7rem;
  color: rgba(255,255,255,0);
  transition: color 0.3s;
  line-height: 1;
  min-width: 1.4rem;
  text-align: center;
}
.hero-indicator-item.active .hero-indicator-num {
  color: rgba(255,255,255,0.95);
}
.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.45);
  border: 1.5px solid rgba(255,255,255,0.7);
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}
.hero-dot.active {
  background: #fff;
  width: 28px;
  border-radius: 999px;
  box-shadow: 0 0 10px rgba(255,255,255,0.7);
}

/* Responsive tweaks */
@media (max-width: 640px) {
  .hero-sky-section { min-height: 60vw !important; }
  .hero-card {
    width: 92vw;
    aspect-ratio: 16 / 9.5;
    border-radius: 1.2rem;
  }
  .hero-card-text {
    padding: 1rem 1.1rem;
    padding-right: 44%;
    background: linear-gradient(
      to right,
      rgba(255,255,255,0.9) 40%,
      rgba(255,255,255,0.45) 65%,
      transparent 100%
    );
  }
  .object-left-mobile {
    object-position: left center !important;
  }
}
