/* assets/css/ui.css - Complete UI Overhaul */

/*
  TABLE OF CONTENTS
  -----------------
  1.  :ROOT & COLOR VARIABLES
  2.  BASE & TYPOGRAPHY
  3.  HEADER & NAVIGATION
  4.  COMPONENTS
      - Buttons
      - Cards (General)
      - Service Cards
      - Approach Items
  5.  PAGE SECTIONS
      - Hero Section
  6.  ANIMATIONS & KEYFRAMES
*/

/* 1. :ROOT & COLOR VARIABLES */
/* =================================== */
:root {
  /* --- Light Theme --- */
  --primary-light-hsl: 248, 80%, 62%;    /* Indigo */
  --secondary-light-hsl: 187, 95%, 45%;  /* Cyan */
  --background-light-hsl: 220, 25%, 98%; /* Very light, cool gray */
  --card-light-hsl: 0, 0%, 100%;         /* White */
  --border-light-hsl: 220, 20%, 92%;     /* Softer border */
  --text-light-hsl: 222, 22%, 18%;       /* Dark gray-blue */
  --muted-light-hsl: 220, 10%, 45%;      /* Muted gray */

  /* --- Dark Theme --- */
  --primary-dark-hsl: 260, 85%, 72%;     /* Violet */
  --secondary-dark-hsl: 184, 86%, 55%;   /* Lighter Cyan */
  --background-dark-hsl: 230, 20%, 8%;   /* Deep, near-black blue */
  --card-dark-hsl: 230, 18%, 12%;        /* Darker card background */
  --border-dark-hsl: 230, 15%, 22%;      /* Softer dark border */
  --text-dark-hsl: 220, 20%, 94%;        /* Light gray */
  --muted-dark-hsl: 220, 10%, 65%;       /* Muted light gray */
}

/* 2. BASE & TYPOGRAPHY */
/* =================================== */
body {
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Consistent font for section titles */
.section-title {
  font-family: 'Urbanist', sans-serif;
  letter-spacing: -0.02em;
}

/* Gradient text for highlights */
.gradient-text {
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

/* 3. HEADER & NAVIGATION */
/* =================================== */
#header {
  transition: background-color 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}

#header.scrolled {
  background-color: hsla(var(--background-light-hsl), 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: hsla(var(--border-light-hsl), 0.8);
  box-shadow: 0 4px 20px -5px rgba(0, 0, 0, 0.04);
}

.dark #header.scrolled {
  background-color: hsla(var(--background-dark-hsl), 0.8);
  border-bottom-color: hsla(var(--border-dark-hsl), 0.8);
  box-shadow: 0 4px 20px -5px rgba(0, 0, 0, 0.2);
}

.logo-link svg {
  filter: drop-shadow(0 0 8px hsla(var(--primary-light-hsl), 0.3));
  transition: filter 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.dark .logo-link svg {
  filter: drop-shadow(0 0 10px hsla(var(--primary-dark-hsl), 0.4));
}


/* 4. COMPONENTS */
/* =================================== */

/* --- Buttons --- */
.btn-glow {
  position: relative;
  overflow: hidden;
  z-index: 1;
  transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              box-shadow 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.btn-glow:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px -5px hsla(var(--primary-light-hsl), 0.25);
}
.dark .btn-glow:hover {
  box-shadow: 0 10px 20px -5px hsla(var(--primary-dark-hsl), 0.25);
}

/* Soft radial background effect */
.btn-glow::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 250%; /* Larger for softer edges */
  padding-bottom: 250%;
  border-radius: 50%;
  background: radial-gradient(circle, hsla(var(--primary-light-hsl), 0.2) 0%, transparent 65%);
  transform: translate(-50%, -50%) scale(0);
  transition: transform 0.7s cubic-bezier(0.165, 0.84, 0.44, 1);
  z-index: -1;
}
.dark .btn-glow::before {
  background: radial-gradient(circle, hsla(var(--primary-dark-hsl), 0.25) 0%, transparent 65%);
}
.btn-glow:hover::before {
  transform: translate(-50%, -50%) scale(1);
}


/* --- Cards (General) --- */
.aurora-card {
  position: relative;
  background-color: hsl(var(--card-light-hsl));
  border: 1px solid hsl(var(--border-light-hsl));
  border-radius: 0.75rem;
  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);
  overflow: hidden;
  z-index: 1;
}
.dark .aurora-card {
  background-color: hsl(var(--card-dark-hsl));
  border: 1px solid hsl(var(--border-dark-hsl));
}

/* The Aurora Gradient Border Effect */
.aurora-card::before,
.aurora-card::after {
  content: "";
  position: absolute;
  inset: -1px; /* Cover the border */
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.5s ease;
  z-index: -1;
}
.aurora-card::before {
  background: radial-gradient(
    300px circle at var(--mouse-x) var(--mouse-y),
    hsla(var(--primary-light-hsl), 0.2),
    transparent 80%
  );
}
.dark .aurora-card::before {
  background: radial-gradient(
    300px circle at var(--mouse-x) var(--mouse-y),
    hsla(var(--primary-dark-hsl), 0.25),
    transparent 80%
  );
}

.aurora-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px -10px rgba(0,0,0,0.1);
}
.dark .aurora-card:hover {
  box-shadow: 0 10px 25px -10px rgba(0,0,0,0.3);
}

.aurora-card:hover::before {
  opacity: 1;
}

/* --- Service & Testimonial Cards --- */
/* The base styling is now inherited from aurora-card */
.dedicated-card, .testimonial-card {
  /* You can add specific padding or other styles here if needed */
}

.dedicated-card .lucide {
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.dedicated-card:hover .lucide {
  transform: scale(1.1) rotate(-8deg);
}

/* --- Approach Items --- */
.approach-item {
  transition: background-color 0.4s ease, box-shadow 0.4s ease;
}
.approach-item:hover {
  background-color: hsl(var(--card-light-hsl));
  box-shadow: 0 8px 25px -8px rgba(0,0,0,0.06);
}
.dark .approach-item:hover {
  background-color: hsl(var(--card-dark-hsl));
  box-shadow: 0 8px 25px -8px rgba(0,0,0,0.2);
}


/* 5. PAGE SECTIONS */
/* =================================== */

/* --- Hero Section Background --- */
.hero-bg-enhanced {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: hsl(var(--background-light-hsl));
  z-index: 0;
}
.dark .hero-bg-enhanced {
  background-color: hsl(var(--background-dark-hsl));
}

/* Multi-layered, soft gradients */
.hero-bg-enhanced::before,
.hero-bg-enhanced::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.3;
}
.dark .hero-bg-enhanced::before,
.dark .hero-bg-enhanced::after {
  opacity: 0.3;
}

.hero-bg-enhanced::before {
  width: 500px;
  height: 500px;
  top: -20%;
  left: -15%;
  background-color: hsla(var(--primary-light-hsl), 0.5);
}
.dark .hero-bg-enhanced::before {
  background-color: hsla(var(--primary-dark-hsl), 0.5);
}

.hero-bg-enhanced::after {
  width: 400px;
  height: 400px;
  bottom: -20%;
  right: -15%;
  background-color: hsla(var(--secondary-light-hsl), 0.5);
}
.dark .hero-bg-enhanced::after {
  background-color: hsla(var(--secondary-dark-hsl), 0.5);
}


/* 6. ANIMATIONS & KEYFRAMES */
/* =================================== */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.fade-in {
  animation: fadeIn 1s cubic-bezier(0.215, 0.610, 0.355, 1) forwards;
  opacity: 0;
}

/* Staggered animation for grid items */
.stagger-in > * {
  opacity: 0;
  transform: translateY(15px);
  animation: fadeIn 1s cubic-bezier(0.215, 0.610, 0.355, 1) forwards;
}

/* Add delays for staggering */
.stagger-in > *:nth-child(1) { animation-delay: 0.1s; }
.stagger-in > *:nth-child(2) { animation-delay: 0.2s; }
.stagger-in > *:nth-child(3) { animation-delay: 0.3s; }
.stagger-in > *:nth-child(4) { animation-delay: 0.4s; }
/* Add more if needed */

/* Soft blob animation */
@keyframes animateBlob {
  0% { transform: translate(0, 0) scale(1) rotate(0deg); }
  25% { transform: translate(20px, -30px) scale(1.05) rotate(10deg); }
  50% { transform: translate(-15px, 15px) scale(0.95) rotate(-5deg); }
  75% { transform: translate(10px, 25px) scale(1.02) rotate(5deg); }
  100% { transform: translate(0, 0) scale(1) rotate(0deg); }
}

.animate-blob {
  animation: animateBlob 12s infinite alternate cubic-bezier(0.455, 0.03, 0.515, 0.955);
}
.animation-delay-2000 {
  animation-delay: -3s; /* Using negative delays to start at different points */
}
.animation-delay-4000 {
  animation-delay: -6s;
}