/* ============================================================
   PriGrow - Custom CSS
   Tailwind handles utilities; this file handles custom
   components, animations, and overrides.
   ============================================================ */

/* ── Fonts & Base ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

:root {
  --primary:       #1e90ff;
  --primary-dark:  #1565c0;
  --primary-light: #60b8ff;
  --secondary:     #0d1b2a;
  --accent:        #00d4ff;
  --text-dark:     #1a1a2e;
  --text-muted:    #6b7280;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  color: var(--text-dark);
  overflow-x: hidden;
}

/* ── Hero / Swiper Slider ───────────────────────────────────── */
.hero-swiper {
  width: 100%;
  height: 100svh;          /* full viewport height including safe-area */
  min-height: 500px;
}

.hero-swiper .swiper-slide {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-swiper .slide-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform: scale(1.05);
  transition: transform 6s ease-out;
}

.hero-swiper .swiper-slide-active .slide-bg {
  transform: scale(1);
}

.hero-swiper .slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,
    rgba(13,27,42,0.80) 0%,
    rgba(30,144,255,0.25) 60%,
    rgba(0,0,0,0.50) 100%);
}

.hero-swiper .slide-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 1rem 1.5rem;
  max-width: 900px;
  width: 100%;
}

/* Swiper navigation & pagination */
.hero-swiper .swiper-button-next,
.hero-swiper .swiper-button-prev {
  color: #fff;
  background: rgba(30,144,255,0.3);
  border-radius: 50%;
  width: 48px;
  height: 48px;
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255,255,255,0.2);
  transition: background 0.3s;
}
.hero-swiper .swiper-button-next:hover,
.hero-swiper .swiper-button-prev:hover {
  background: var(--primary);
}
.hero-swiper .swiper-button-next::after,
.hero-swiper .swiper-button-prev::after {
  font-size: 16px;
  font-weight: 700;
}
.hero-swiper .swiper-pagination-bullet {
  width: 10px;
  height: 10px;
  background: rgba(255,255,255,0.5);
  opacity: 1;
  transition: all 0.3s;
}
.hero-swiper .swiper-pagination-bullet-active {
  background: var(--primary);
  width: 28px;
  border-radius: 5px;
}

/* ── Slide Text Animations ──────────────────────────────────── */
.slide-content .slide-title,
.slide-content .slide-subtitle,
.slide-content .slide-btn {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.swiper-slide-active .slide-title   { opacity: 1; transform: none; transition-delay: 0.3s; }
.swiper-slide-active .slide-subtitle{ opacity: 1; transform: none; transition-delay: 0.5s; }
.swiper-slide-active .slide-btn     { opacity: 1; transform: none; transition-delay: 0.7s; }

/* ── Section Animations ─────────────────────────────────────── */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.animate-on-scroll.animated {
  opacity: 1;
  transform: none;
}
.animate-on-scroll.delay-100 { transition-delay: 0.1s; }
.animate-on-scroll.delay-200 { transition-delay: 0.2s; }
.animate-on-scroll.delay-300 { transition-delay: 0.3s; }
.animate-on-scroll.delay-400 { transition-delay: 0.4s; }
.animate-on-scroll.delay-500 { transition-delay: 0.5s; }

/* ── Service Cards ──────────────────────────────────────────── */
.service-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #e5e7eb;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(30,144,255,0.15);
  border-color: var(--primary);
}
.service-card .icon-wrap {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: #fff;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}
.service-card:hover .icon-wrap {
  transform: rotate(10deg) scale(1.1);
}

/* ── Stats Counter ──────────────────────────────────────────── */
.stat-number {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Section Heading ────────────────────────────────────────── */
.section-badge {
  display: inline-block;
  padding: 0.25rem 1rem;
  background: rgba(30,144,255,0.1);
  color: var(--primary);
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}
.section-heading {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 800;
  line-height: 1.2;
  color: var(--text-dark);
}
.section-divider {
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 2px;
  margin: 1rem auto;
}

/* ── Buttons ────────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(30,144,255,0.4);
  text-decoration: none;
  border: none;
  cursor: pointer;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(30,144,255,0.5);
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
}
.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border: 2px solid var(--primary);
  color: var(--primary);
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  text-decoration: none;
  background: transparent;
  cursor: pointer;
}
.btn-outline:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(30,144,255,0.3);
}

/* ── Process Steps ──────────────────────────────────────────── */
.process-step {
  position: relative;
  text-align: center;
}
.process-step::after {
  content: '';
  position: absolute;
  top: 32px;
  left: 50%;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), transparent);
  z-index: 0;
}
.process-step:last-child::after { display: none; }

/* ── Form Elements ──────────────────────────────────────────── */
.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid #e5e7eb;
  border-radius: 0.75rem;
  font-size: 0.9rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  background: #fff;
  color: var(--text-dark);
  outline: none;
}
.form-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(30,144,255,0.12);
}
.form-input::placeholder { color: #9ca3af; }

/* ── Admin Sidebar ──────────────────────────────────────────── */
.admin-sidebar {
  background: var(--secondary);
  min-height: 100vh;
  width: 260px;
  flex-shrink: 0;
  position: sticky;
  top: 0;
  overflow-y: auto;
}
.admin-sidebar .nav-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  color: #9ca3af;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.2s;
  text-decoration: none;
}
.admin-sidebar .nav-link:hover,
.admin-sidebar .nav-link.active {
  background: rgba(30,144,255,0.15);
  color: var(--primary);
}
.admin-sidebar .nav-link i { width: 20px; text-align: center; }

/* ── Responsive Tweaks ──────────────────────────────────────── */
@media (max-width: 768px) {
  .hero-swiper { height: 100svh; }
  .hero-swiper .swiper-button-next,
  .hero-swiper .swiper-button-prev { display: none; }
}

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

/* ── Testimonial Card ───────────────────────────────────────── */
.testimonial-card {
  background: #fff;
  border-radius: 1.25rem;
  padding: 2rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  border: 1px solid #f0f0f0;
  transition: box-shadow 0.3s;
}
.testimonial-card:hover {
  box-shadow: 0 10px 35px rgba(30,144,255,0.1);
}

/* ── Pulse Glow (for hero CTA) ──────────────────────────────── */
@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(30,144,255,0.6); }
  50%       { box-shadow: 0 0 0 12px rgba(30,144,255,0); }
}
.btn-pulse { animation: pulse-glow 2.5s ease-in-out infinite; }

/* ── Page Hero Banner ───────────────────────────────────────── */
.page-hero {
  background: linear-gradient(135deg, var(--secondary) 0%, #1a2e42 50%, #0a1628 100%);
  padding: 5rem 1rem 4rem;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(30,144,255,0.12) 0%, transparent 70%);
  top: -100px;
  right: -100px;
  border-radius: 50%;
}

/* ── Cookie / Alert strips ──────────────────────────────────── */
.flash-success { background: #dcfce7; color: #166534; border: 1px solid #86efac; }
.flash-error   { background: #fee2e2; color: #991b1b; border: 1px solid #fca5a5; }
.flash-info    { background: #dbeafe; color: #1e40af; border: 1px solid #93c5fd; }
