/*
 * ✨ SEMPI VISUAL ENHANCEMENTS
 * Modern, premium visual upgrades
 * Colors: #F16926 (Orange) + Black palette
 */

/* ==========================================
   🎨 ENHANCED COLOR PALETTE & GRADIENTS
   ========================================== */
:root {
  /* Original colors enhanced */
  --color-primary-glow: rgba(241, 105, 38, 0.3);
  --color-primary-soft: rgba(241, 105, 38, 0.1);

  /* Rich gradients */
  --gradient-primary: linear-gradient(135deg, #f16926 0%, #ff9a5c 100%);
  --gradient-primary-hover: linear-gradient(135deg, #ff7f3d 0%, #ffab73 100%);
  --gradient-dark: linear-gradient(180deg, #000000 0%, #0a0a0a 100%);
  --gradient-card: linear-gradient(135deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.02) 100%);

  /* Glassmorphism */
  --glass-bg: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.1);
  --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);

  /* Enhanced transitions */
  --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  --transition-elastic: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* ==========================================
   ✨ ENHANCED HEADER WITH GLASSMORPHISM
   ========================================== */
header {
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  transition: var(--transition-smooth);
}

header:hover {
  background: rgba(0, 0, 0, 0.9);
  border-bottom-color: rgba(241, 105, 38, 0.3);
}

/* Logo glow effect */
.navbar-logo img {
  filter: drop-shadow(0 0 8px rgba(241, 105, 38, 0.3));
  transition: var(--transition-smooth);
}

.navbar-logo:hover img {
  filter: drop-shadow(0 0 16px rgba(241, 105, 38, 0.6));
  transform: scale(1.05);
}

/* Enhanced nav links */
.navbar-links a {
  position: relative;
  transition: var(--transition-smooth);
}

.navbar-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar-links a:hover::after,
.navbar-links a[aria-current="page"]::after {
  width: 100%;
}

/* Premium CTA button */
.navbar-cta {
  background: var(--gradient-primary);
  box-shadow: 0 4px 15px rgba(241, 105, 38, 0.3);
  position: relative;
  overflow: hidden;
  transition: var(--transition-smooth);
}

.navbar-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s;
}

.navbar-cta:hover::before {
  left: 100%;
}

.navbar-cta:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 8px 25px rgba(241, 105, 38, 0.5);
}

/* ==========================================
   🚀 HERO SECTION - PREMIUM EFFECTS
   ========================================== */
.hero {
  position: relative;
  background: radial-gradient(circle at 50% 0%, rgba(241,105,38,0.08) 0%, rgba(0,0,0,0) 70%);
  overflow: hidden;
}

/* Animated background particles */
.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    radial-gradient(circle at 20% 50%, rgba(241,105,38,0.05) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(241,105,38,0.03) 0%, transparent 50%);
  animation: float 20s ease-in-out infinite;
  pointer-events: none;
}

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

/* Enhanced hero pill */
.hero-pill {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  box-shadow: 0 4px 15px rgba(241, 105, 38, 0.1);
  transition: var(--transition-smooth);
  animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 4px 15px rgba(241, 105, 38, 0.1); }
  50% { box-shadow: 0 4px 25px rgba(241, 105, 38, 0.3); }
}

.hero-pill:hover {
  background: rgba(241, 105, 38, 0.1);
  transform: scale(1.05);
  border-color: var(--color-primary);
}

/* Premium heading effects */
.hero h1 {
  background: linear-gradient(135deg, #ffffff 0%, #e0e0e0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: slideUp 0.8s ease-out;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero h1 .underline-hand {
  position: relative;
  display: inline-block;
}

.hero h1 .underline-hand::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  right: 0;
  height: 12px;
  background: linear-gradient(90deg, transparent, rgba(241,105,38,0.3), transparent);
  transform: scaleX(0);
  animation: underlineDraw 1s ease-out 0.5s forwards;
}

@keyframes underlineDraw {
  to { transform: scaleX(1); }
}

/* Scroll hint animation */
.scroll-hint {
  animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* ==========================================
   💎 PREMIUM BUTTONS
   ========================================== */
.btn {
  position: relative;
  overflow: hidden;
  transition: var(--transition-smooth);
}

.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
  width: 300px;
  height: 300px;
}

.btn-primary {
  background: var(--gradient-primary);
  box-shadow: 0 4px 15px rgba(241, 105, 38, 0.3);
}

.btn-primary:hover {
  background: var(--gradient-primary-hover);
  box-shadow: 0 8px 30px rgba(241, 105, 38, 0.5);
  transform: translateY(-3px) scale(1.02);
}

.btn-primary:active {
  transform: translateY(-1px) scale(0.98);
}

.btn-outline {
  border: 2px solid rgba(255, 255, 255, 0.2);
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  transition: var(--transition-smooth);
}

.btn-outline:hover {
  border-color: var(--color-primary);
  background: rgba(241, 105, 38, 0.1);
  box-shadow: 0 4px 20px rgba(241, 105, 38, 0.2);
}

/* ==========================================
   🎴 ENHANCED CARDS WITH GLASSMORPHISM
   ========================================== */
.card {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

/* Hover glow effect */
.card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(241,105,38,0.1) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.5s;
}

.card:hover::before {
  opacity: 1;
}

.card:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: rgba(241, 105, 38, 0.3);
  box-shadow: 0 12px 40px rgba(241, 105, 38, 0.2);
}

/* Badge with glow */
.badge {
  background: rgba(241, 105, 38, 0.15);
  border: 1px solid rgba(241, 105, 38, 0.3);
  box-shadow: 0 0 15px rgba(241, 105, 38, 0.2);
  transition: var(--transition-smooth);
}

.badge:hover {
  background: rgba(241, 105, 38, 0.25);
  box-shadow: 0 0 25px rgba(241, 105, 38, 0.4);
  transform: scale(1.05);
}

/* ==========================================
   📊 STATS & METRICS - ANIMATED
   ========================================== */
.hero-stats, .clients-stats {
  animation: fadeInUp 1s ease-out 0.3s both;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.stat-mini, .metric-item {
  transition: var(--transition-smooth);
}

.stat-mini:hover, .metric-item:hover {
  transform: translateY(-5px) scale(1.05);
}

.metric-value {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: numberPop 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55) both;
}

@keyframes numberPop {
  0% { transform: scale(0); }
  50% { transform: scale(1.2); }
  100% { transform: scale(1); }
}

/* ==========================================
   🎯 CASE STUDY CARDS - PREMIUM
   ========================================== */
.case-study-card {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  transition: var(--transition-smooth);
  position: relative;
}

.case-study-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 24px;
  padding: 2px;
  background: linear-gradient(135deg, transparent, rgba(241,105,38,0.3), transparent);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.5s;
}

.case-study-card:hover::after {
  opacity: 1;
}

.case-study-card:hover {
  transform: translateY(-12px) rotateX(2deg);
  box-shadow: 0 25px 50px rgba(241, 105, 38, 0.3);
}

.case-study-image {
  transition: var(--transition-smooth);
}

.case-study-card:hover .case-study-image {
  transform: scale(1.05);
  filter: brightness(1.1);
}

/* ==========================================
   ⚡ INTERACTIVE ELEMENTS
   ========================================== */
.link-inline {
  position: relative;
  transition: var(--transition-smooth);
}

.link-inline::after {
  content: '→';
  margin-left: 0.5rem;
  transition: var(--transition-smooth);
}

.link-inline:hover::after {
  margin-left: 1rem;
  color: #ff9a5c;
}

/* Filter buttons with morphing */
.filter-btn {
  transition: var(--transition-bounce);
  position: relative;
}

.filter-btn:hover {
  transform: translateY(-2px) scale(1.05);
}

.filter-btn.active {
  background: var(--gradient-primary);
  box-shadow: 0 4px 15px rgba(241, 105, 38, 0.4);
  animation: filterPop 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes filterPop {
  0% { transform: scale(1); }
  50% { transform: scale(1.2); }
  100% { transform: scale(1); }
}

/* ==========================================
   🎪 TESTIMONIAL SLIDER - SMOOTH
   ========================================== */
.testimonial-track {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.testimonial-card {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  min-width: 100%;
  transition: var(--transition-smooth);
}

.testimonial-card p {
  position: relative;
}

.testimonial-card p::before,
.testimonial-card p::after {
  content: '"';
  font-size: 3rem;
  color: var(--color-primary);
  opacity: 0.3;
  position: absolute;
}

.testimonial-card p::before {
  top: -20px;
  left: -10px;
}

.testimonial-card p::after {
  bottom: -40px;
  right: 0;
}

/* Slider controls */
.slider-button {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  transition: var(--transition-smooth);
  cursor: pointer;
}

.slider-button:hover {
  background: var(--gradient-primary);
  border-color: var(--color-primary);
  transform: scale(1.1);
  box-shadow: 0 4px 15px rgba(241, 105, 38, 0.4);
}

/* ==========================================
   📝 ENHANCED FORMS
   ========================================== */
.form-group input,
.form-group textarea,
.form-group select {
  transition: var(--transition-smooth);
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 20px rgba(241, 105, 38, 0.2);
  transform: scale(1.01);
}

.contact-form {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  transition: var(--transition-smooth);
}

.contact-form:hover {
  border-color: rgba(241, 105, 38, 0.3);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

/* ==========================================
   🎭 ACCORDION - SMOOTH ANIMATIONS
   ========================================== */
.accordion-trigger {
  transition: var(--transition-smooth);
}

.accordion-trigger:hover {
  color: var(--color-primary);
  padding-left: 0.5rem;
}

.accordion-trigger svg {
  transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  filter: drop-shadow(0 0 8px rgba(241, 105, 38, 0.3));
}

.accordion-trigger[aria-expanded="true"] svg {
  transform: rotate(45deg) scale(1.2);
  color: var(--color-primary);
}

.accordion-content {
  transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s;
}

/* ==========================================
   🌊 PAIN CARDS & SPECIAL SECTIONS
   ========================================== */
.pain-card {
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.pain-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(241,105,38,0.1), transparent);
  transition: left 0.6s;
}

.pain-card:hover::before {
  left: 100%;
}

.pain-card:hover {
  transform: translateY(-5px) scale(1.02);
  border-color: rgba(241, 105, 38, 0.3);
  box-shadow: 0 8px 30px rgba(241, 105, 38, 0.2);
}

/* Insight box premium effect */
.insight-box {
  background: var(--gradient-primary) !important;
  box-shadow: 0 10px 40px rgba(241, 105, 38, 0.4);
  animation: insightPulse 3s ease-in-out infinite;
  position: relative;
  overflow: hidden;
}

@keyframes insightPulse {
  0%, 100% { box-shadow: 0 10px 40px rgba(241, 105, 38, 0.4); }
  50% { box-shadow: 0 15px 60px rgba(241, 105, 38, 0.6); }
}

.insight-box::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
  animation: rotate 10s linear infinite;
}

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

/* ==========================================
   ✨ REVEAL ANIMATIONS - STAGGER
   ========================================== */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delays for grid items */
.cards-grid .card:nth-child(1) { transition-delay: 0.1s; }
.cards-grid .card:nth-child(2) { transition-delay: 0.2s; }
.cards-grid .card:nth-child(3) { transition-delay: 0.3s; }
.cards-grid .card:nth-child(4) { transition-delay: 0.4s; }
.cards-grid .card:nth-child(5) { transition-delay: 0.5s; }
.cards-grid .card:nth-child(6) { transition-delay: 0.6s; }

/* ==========================================
   🎨 SEMPI LETTERS INTERACTION
   ========================================== */
.sempi-letter {
  transition: var(--transition-bounce) !important;
  position: relative;
  overflow: hidden;
}

.sempi-letter::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(241,105,38,0.3), transparent);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.sempi-letter:hover::before {
  width: 200%;
  height: 200%;
}

.sempi-letter:hover {
  transform: translateY(-10px) scale(1.1) rotate(-5deg) !important;
  background: rgba(241, 105, 38, 0.15) !important;
  border-color: var(--color-primary) !important;
  box-shadow: 0 8px 30px rgba(241, 105, 38, 0.3);
}

/* ==========================================
   📱 RESPONSIVE ENHANCEMENTS
   ========================================== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media (max-width: 768px) {
  .card:hover,
  .case-study-card:hover {
    transform: translateY(-4px);
  }

  .hero::before {
    animation: none;
  }
}

/* ==========================================
   🌟 LOADING STATES
   ========================================== */
@keyframes shimmer {
  0% { background-position: -1000px 0; }
  100% { background-position: 1000px 0; }
}

.loading {
  animation: shimmer 2s infinite linear;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.05) 0%,
    rgba(241, 105, 38, 0.1) 50%,
    rgba(255, 255, 255, 0.05) 100%
  );
  background-size: 1000px 100%;
}

/* ==========================================
   🎯 UTILITY CLASSES
   ========================================== */
.glow-orange {
  box-shadow: 0 0 20px rgba(241, 105, 38, 0.5);
}

.hover-lift {
  transition: var(--transition-smooth);
}

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

.gradient-text {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Smooth scroll with offset for sticky header */
html {
  scroll-padding-top: 100px;
}
