@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Outfit:wght@300;400;500;600;700&display=swap');

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

:root {
  --primary: #0284c7; /* Sky 600 */
  --primary-light: #e0f2fe; /* Sky 100 */
  --primary-dark: #0369a1; /* Sky 700 */
  --text-main: #0f172a; /* Slate 900 */
  --text-muted: #64748b; /* Slate 500 */
  --bg-white: #ffffff;
  --bg-offwhite: #f8fafc; /* Slate 50 */
}

/* Lenis Recommended CSS */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }
.lenis.lenis-scrolling iframe { pointer-events: none; }

html {
  font-family: 'Inter', sans-serif;
  color: var(--text-main);
  background-color: var(--bg-white);
}

h1, h2, h3, h4, h5, h6, .font-heading {
  font-family: 'Outfit', sans-serif;
}

/* Glassmorphism & Cards */
.glass-header {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
}

.premium-card {
  background: var(--bg-white);
  border-radius: 2rem;
  border: 1px solid rgba(0, 0, 0, 0.04);
  box-shadow: 0 10px 40px -10px rgba(2, 132, 199, 0.08);
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
  position: relative;
}

.premium-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px -10px rgba(2, 132, 199, 0.15);
}

/* Bento Grid System */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(2, 300px);
  gap: 1.5rem;
}
.bento-large { grid-column: span 2; grid-row: span 2; }
.bento-wide { grid-column: span 2; grid-row: span 1; }
.bento-square { grid-column: span 1; grid-row: span 1; }

@media (max-width: 1024px) {
  .bento-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: auto;
  }
  .bento-large, .bento-wide, .bento-square {
    grid-column: span 2;
    grid-row: auto;
    min-height: 300px;
  }
}

.section-padding {
  padding-top: 8rem;
  padding-bottom: 8rem;
}

.blue-gradient-text {
  background: linear-gradient(135deg, #0284c7, #0ea5e9);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Image overlays */
.img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.8), transparent);
  pointer-events: none;
}

/* Floating WhatsApp */
.floating-whatsapp {
  animation: pulse-soft 2s infinite;
}

@keyframes pulse-soft {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.4); }
  70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* GSAP Specific Hiding before animation */
.gsap-reveal {
  opacity: 0;
  visibility: hidden;
}

.split-line {
  overflow: hidden;
}

/* --- NEW PREMIUM SECTIONS --- */

/* Premium Glow Effects */
.premium-glow {
  position: relative;
}
.premium-glow::after {
  content: '';
  position: absolute;
  inset: -2px;
  background: linear-gradient(135deg, rgba(2, 132, 199, 0.4), rgba(14, 165, 233, 0.1), rgba(2, 132, 199, 0.4));
  filter: blur(15px);
  z-index: -1;
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.5s ease;
}
.premium-glow:hover::after {
  opacity: 1;
}

.btn-glow {
  box-shadow: 0 0 20px rgba(2, 132, 199, 0.4);
}
.btn-glow:hover {
  box-shadow: 0 0 30px rgba(2, 132, 199, 0.7);
}

/* Background Marquee Text */
.bg-marquee-container {
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  width: 100%;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
  opacity: 0.03;
}
.bg-marquee {
  display: flex;
  white-space: nowrap;
  font-family: 'Outfit', sans-serif;
  font-size: 25vw;
  font-weight: 800;
  color: #0f172a;
  line-height: 1;
}

/* Before / After Slider */
.ba-container {
  position: relative;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  border-radius: 2rem;
  overflow: hidden;
  box-shadow: 0 20px 50px -10px rgba(2, 132, 199, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.8);
  aspect-ratio: 16/9;
}
.ba-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}
.ba-after {
  z-index: 1;
}
.ba-before {
  z-index: 2;
  /* Filter trick for whitening effect */
  filter: sepia(0.3) hue-rotate(-20deg) brightness(0.9) contrast(0.9);
}
.ba-slider-handle {
  position: absolute;
  top: 0;
  left: 50%;
  width: 4px;
  height: 100%;
  background: var(--bg-white);
  z-index: 3;
  cursor: ew-resize;
  transform: translateX(-50%);
  box-shadow: 0 0 10px rgba(0,0,0,0.3);
}
.ba-slider-handle::after {
  content: '< >';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 14px;
  border: 3px solid var(--bg-white);
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

/* FAQ Accordion */
.faq-item {
  border-bottom: 1px solid rgba(15, 23, 42, 0.1);
  overflow: hidden;
}
.faq-question {
  width: 100%;
  text-align: left;
  padding: 2rem 0;
  font-family: 'Outfit', sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-main);
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: color 0.3s;
}
.faq-question:hover {
  color: var(--primary);
}
.faq-icon {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.4s ease, background 0.4s ease;
}
.faq-item.active .faq-icon {
  transform: rotate(45deg);
  background: var(--primary);
  color: white;
}
.faq-answer {
  max-height: 0;
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  color: var(--text-muted);
  line-height: 1.8;
  padding-right: 2rem;
}
.faq-item.active .faq-answer {
  max-height: 200px;
  opacity: 1;
  padding-bottom: 2rem;
}

/* Sleek Process Timeline */
.process-wrapper {
  position: relative;
  padding-left: 3rem;
}
.process-line-bg {
  position: absolute;
  left: 0.5rem;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--primary-light);
}
.process-line-fill {
  position: absolute;
  left: 0.5rem;
  top: 0;
  width: 2px;
  height: 0%;
  background: var(--primary);
}
.process-step {
  position: relative;
  margin-bottom: 4rem;
}
.process-step::before {
  content: '';
  position: absolute;
  left: -2.85rem;
  top: 0.2rem;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--bg-white);
  border: 3px solid var(--primary);
  z-index: 10;
}
