/* ===== Custom Styles for Cherid.Dev ===== */
/* TailwindCSS v4 handles most styling via utility classes */
/* This file contains custom animations, effects, and overrides */

/* ===== Smooth Scroll & Base ===== */
html {
  scroll-behavior: smooth;
}

/* ===== Selection Color ===== */
::selection {
  background: rgba(37, 99, 235, 0.2);
  color: #1e40af;
}

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

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

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #2563eb, #3b82f6);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #1e40af, #2563eb);
}

/* ===== Custom Animations ===== */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
}

@keyframes float-delay {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-15px); }
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 20px rgba(37, 99, 235, 0.3); }
  50% { box-shadow: 0 0 40px rgba(37, 99, 235, 0.6); }
}

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

@keyframes spin-slow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes blob {
  0%, 100% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
  25% { border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%; }
  50% { border-radius: 50% 60% 30% 60% / 30% 60% 70% 40%; }
  75% { border-radius: 60% 40% 60% 30% / 60% 40% 30% 60%; }
}

/* Animation utility classes */
.animate-float { animation: float 6s ease-in-out infinite; }
.animate-float-delay { animation: float-delay 5s ease-in-out infinite 1s; }
.animate-pulse-glow { animation: pulse-glow 3s ease-in-out infinite; }
.animate-gradient {
  background-size: 200% 200%;
  animation: gradient-shift 8s ease infinite;
}
.animate-spin-slow { animation: spin-slow 20s linear infinite; }
.animate-blob { animation: blob 8s ease-in-out infinite; }

/* ===== Scroll-Triggered Reveal Animations ===== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-left.active {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(50px);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-right.active {
  opacity: 1;
  transform: translateX(0);
}

/* Stagger children animations */
.stagger-children > * {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.stagger-children.active > *:nth-child(1) { transition-delay: 0.1s; }
.stagger-children.active > *:nth-child(2) { transition-delay: 0.2s; }
.stagger-children.active > *:nth-child(3) { transition-delay: 0.3s; }
.stagger-children.active > *:nth-child(4) { transition-delay: 0.4s; }
.stagger-children.active > *:nth-child(5) { transition-delay: 0.5s; }
.stagger-children.active > *:nth-child(6) { transition-delay: 0.6s; }

.stagger-children.active > * {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Hero Section ===== */
.hero-gradient {
  background:
    radial-gradient(ellipse at 20% 50%, rgba(37, 99, 235, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(59, 130, 246, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 40% 80%, rgba(30, 64, 175, 0.05) 0%, transparent 50%),
    linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.hero-blob {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.15), rgba(59, 130, 246, 0.1));
  filter: blur(60px);
}

/* ===== Glassmorphism Card ===== */
.glass-card {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.5);
}

/* ===== Navbar ===== */
.navbar {
  transition: all 0.3s ease;
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
}

/* ===== Gradient Text ===== */
.gradient-text {
  background: linear-gradient(135deg, #2563eb, #3b82f6, #1e40af);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== Button Smooth Hover Effect ===== */
.btn-smooth {
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.btn-smooth:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px -5px rgba(37, 99, 235, 0.4);
}

.btn-smooth:active {
  transform: translateY(-1px);
  box-shadow: 0 5px 15px -3px rgba(37, 99, 235, 0.3);
}


/* ===== Service Card ===== */
.service-card {
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 60px rgba(37, 99, 235, 0.15);
}

.service-card .icon-wrapper {
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-card:hover .icon-wrapper {
  background: linear-gradient(135deg, #2563eb, #3b82f6) !important;
  color: white !important;
  transform: scale(1.1);
}

/* ===== Portfolio Card ===== */
.portfolio-card {
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.portfolio-card:hover {
  transform: translateY(-5px);
}

.portfolio-card .overlay {
  opacity: 0;
  transition: all 0.4s ease;
}

.portfolio-card:hover .overlay {
  opacity: 1;
}

.portfolio-card .portfolio-img {
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.portfolio-card:hover .portfolio-img {
  transform: scale(1.1);
}

/* ===== Pricing Card ===== */
.pricing-card {
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.pricing-card:hover {
  transform: translateY(-8px);
}

.pricing-popular {
  border: 2px solid #2563eb;
  box-shadow: 0 20px 60px rgba(37, 99, 235, 0.2);
  transform: scale(1.05);
}

.pricing-popular:hover {
  transform: scale(1.05) translateY(-8px);
}

/* ===== Team Card ===== */
.team-card {
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.team-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

.team-card .social-links {
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s ease;
}

.team-card:hover .social-links {
  opacity: 1;
  transform: translateY(0);
}

/* ===== FAQ Accordion ===== */
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1), padding 0.3s ease;
}

.faq-answer.open {
  max-height: 300px;
}

.faq-icon {
  transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

/* ===== Testimonial Slider ===== */
.testimonial-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.testimonial-slide {
  min-width: 100%;
  padding: 0 1rem;
}

.testimonial-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #cbd5e1;
  transition: all 0.3s ease;
  cursor: pointer;
}

.testimonial-dot.active {
  background: #2563eb;
  width: 30px;
  border-radius: 5px;
}

/* ===== Portfolio Filter ===== */
.filter-btn {
  transition: all 0.3s ease;
}

.filter-btn.active {
  background: #2563eb !important;
  color: white !important;
}

/* ===== Mobile Menu ===== */
.mobile-menu {
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-menu.open {
  transform: translateX(0);
}

/* ===== Contact Form Focus ===== */
.form-input:focus {
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* ===== Dots Pattern ===== */
.dots-pattern {
  background-image: radial-gradient(circle, #cbd5e1 1px, transparent 1px);
  background-size: 20px 20px;
}

/* ===== Section Divider Line ===== */
.section-divider {
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, #2563eb, #3b82f6);
  border-radius: 2px;
}

/* ===== Typed Cursor ===== */
#typed-text::after {
  content: '|';
  animation: blink 0.8s infinite;
  color: #2563eb;
  font-weight: 300;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}
