/* ========================================
   JIM-SMART509 - INDEX PAGE COMPLETE REDESIGN
   Nouvo Koulè: Ble, Blan, Gri, Oran
======================================== */

/* ===== VARIABLES ===== */
:root {
  /* Nouvo Koulè */
  --primary: #1e40af;        /* Ble Fon */
  --primary-light: #3b82f6;  /* Ble Klere */
  --accent: #10b981;         /* Vèt */
  --accent-light: #34d399;   /* Vèt Klere */
  --white: #ffffff;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  
  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.12);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 25px rgba(0,0,0,0.15);
  --shadow-xl: 0 20px 40px rgba(0,0,0,0.2);
}

/* ===== RESET ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  background: linear-gradient(135deg, var(--gray-50) 0%, var(--white) 50%, var(--gray-100) 100%);
  color: var(--gray-800);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ===== MODERN HEADER / NAVBAR ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(0,0,0,0.08);
  border-bottom: 2px solid transparent;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.header.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 4px 30px rgba(0,0,0,0.12);
  border-bottom: 2px solid var(--primary);
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1.5rem;
  max-width: 1400px;
  margin: 0 auto;
}

/* Modern Logo with Animation */
.logo-modern {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
}

.logo-modern:hover {
  transform: translateY(-2px);
}

.logo-wrapper {
  position: relative;
  width: 45px;
  height: 45px;
}

.logo-wrapper img {
  width: 100%;
  height: 100%;
  border-radius: 16px;
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(30, 64, 175, 0.2);
  transition: all 0.4s ease;
  position: relative;
  z-index: 2;
}

.logo-modern:hover .logo-wrapper img {
  box-shadow: 0 8px 24px rgba(30, 64, 175, 0.35);
  transform: scale(1.05) rotate(3deg);
}

/* Pulsing Animation */
.logo-pulse {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  opacity: 0.3;
  z-index: 1;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 0.3;
  }
  50% {
    transform: scale(1.15);
    opacity: 0.1;
  }
}

.logo-text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.logo-title {
  font-size: 1.1rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.5px;
}

.logo-subtitle {
  font-size: 0.65rem;
  color: var(--gray-700);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Navigation */
.nav {
  flex: 1;
  display: flex;
  justify-content: flex-end;
}

.nav-list {
  display: flex;
  list-style: none;
  gap: 0.25rem;
  align-items: center;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.6rem 0.75rem;
  border-radius: 10px;
  color: var(--gray-700);
  font-weight: 600;
  font-size: 0.85rem;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  white-space: nowrap;
  overflow: hidden;
}

.nav-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--primary-light), var(--accent));
  opacity: 0;
  transition: all 0.3s ease;
  z-index: -1;
  border-radius: 12px;
}

.nav-link:hover,
.nav-link[aria-current="page"] {
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(30, 64, 175, 0.25);
}

.nav-link:hover::before,
.nav-link[aria-current="page"]::before {
  opacity: 1;
}

.nav-link .nav-icon {
  transition: all 0.3s ease;
}

.nav-link:hover .nav-icon {
  transform: scale(1.15) rotate(5deg);
}

.nav-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  stroke-width: 2.5;
}

/* Hamburger */
.hamburger {
  display: none;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border: none;
  color: var(--white);
  padding: 0.85rem;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 12px rgba(30, 64, 175, 0.3);
}

.hamburger:hover {
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  transform: scale(1.08) rotate(5deg);
  box-shadow: 0 6px 16px rgba(16, 185, 129, 0.4);
}

.hamburger-icon {
  width: 24px;
  height: 24px;
  stroke-width: 2.5;
}

/* Classic Cart Button */
.cart-btn-modern {
  position: relative;
  background: transparent;
  border: none;
  padding: 0.7rem;
  border-radius: 10px;
  color: var(--gray-700);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.cart-btn-modern:hover {
  background: var(--gray-100);
  color: var(--primary);
}

.cart-btn-modern span:not(.cart-count) {
  display: none;
}

.cart-icon {
  width: 22px;
  height: 22px;
  stroke-width: 2.5;
  transition: all 0.3s ease;
}

.cart-btn-modern:hover .cart-icon {
  transform: scale(1.1);
}

/* Profile Button - Classic Style */
.nav-list li:has(a[href="profile.html"]) a {
  background: transparent;
  padding: 0.7rem;
}

.nav-list li:has(a[href="profile.html"]) a:hover {
  background: var(--gray-100);
}

.nav-list li:has(a[href="profile.html"]) a span {
  display: none;
}

.nav-list li:has(a[href="profile.html"]) a .nav-icon {
  width: 22px;
  height: 22px;
}

.cart-count {
  position: absolute;
  top: -4px;
  right: -4px;
  background: #ef4444;
  color: var(--white);
  font-size: 0.65rem;
  font-weight: 800;
  padding: 0.2rem 0.45rem;
  border-radius: 50%;
  min-width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-shadow: 0 2px 6px rgba(239, 68, 68, 0.4);
  animation: cartBounce 0.5s ease;
}

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

/* Mobile Overlay */
.mobile-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.mobile-overlay.active {
  display: block;
  opacity: 1;
}

/* Modern Mobile Menu */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 85%;
  max-width: 400px;
  height: 100vh;
  background: linear-gradient(135deg, var(--white) 0%, var(--gray-50) 100%);
  padding: 0;
  box-shadow: -4px 0 30px rgba(0, 0, 0, 0.15);
  transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1001;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.mobile-menu.active {
  right: 0;
}

.mobile-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: var(--white);
  box-shadow: 0 4px 12px rgba(30, 64, 175, 0.2);
}

.mobile-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.mobile-logo img {
  width: 45px;
  height: 45px;
  border-radius: 12px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.mobile-logo span {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--white);
}

.mobile-menu-close {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: var(--white);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.mobile-menu-close:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: rotate(90deg);
}

.close-icon {
  width: 24px;
  height: 24px;
  stroke-width: 2.5;
}

.mobile-nav-list {
  list-style: none;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.mobile-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-radius: 12px;
  color: var(--gray-800);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  background: var(--white);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  position: relative;
  overflow: hidden;
}

.mobile-link::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 4px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  transform: scaleY(0);
  transition: transform 0.3s ease;
}

.mobile-link:hover::before,
.mobile-link:active::before {
  transform: scaleY(1);
}

.mobile-link:hover {
  background: linear-gradient(135deg, var(--primary-light), var(--accent));
  color: var(--white);
  transform: translateX(8px);
  box-shadow: 0 4px 12px rgba(30, 64, 175, 0.2);
}

.mobile-link i {
  width: 22px;
  height: 22px;
  stroke-width: 2.5;
  transition: all 0.3s ease;
}

.mobile-link:hover i {
  transform: scale(1.15) rotate(5deg);
}

.mobile-link.cart-mobile {
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  color: var(--white);
  margin-top: 1rem;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.mobile-link.cart-mobile:hover {
  transform: translateX(8px) scale(1.02);
  box-shadow: 0 6px 16px rgba(16, 185, 129, 0.4);
}

/* ===== HERO SECTION ===== */
.hero {
  position: relative;
  height: 100vh;
  min-height: 700px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-top: 80px;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
}

.hero-carousel {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
}

.slide.active {
  opacity: 1;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(30, 64, 175, 0.85), rgba(16, 185, 129, 0.75));
  z-index: 1;
}

/* Hero Content */
.slide-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 3rem 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

/* Hero Badge */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50px;
  color: white;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 2rem;
  animation: fadeInDown 1s ease;
}

.hero-badge i {
  width: 20px;
  height: 20px;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(1.1); }
}

/* Hero Title */
.hero-title {
  font-size: clamp(3rem, 8vw, 5.5rem);
  margin-bottom: 1.5rem;
  color: white;
  font-weight: 900;
  line-height: 1;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  animation: fadeInUp 1s ease 0.2s both;
  letter-spacing: -2px;
}

/* Hero Subtitle */
.hero-subtitle {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 700;
  background: linear-gradient(135deg, #ffffff 0%, #10b981 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem;
  animation: fadeInUp 1s ease 0.4s both;
}

/* Hero Description */
.hero-description {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 3rem;
  font-weight: 500;
  animation: fadeInUp 1s ease 0.6s both;
}

/* Hero CTA Buttons */
.hero-cta-buttons {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
  animation: fadeInUp 1s ease 0.8s both;
}

.hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.25rem 2.5rem;
  font-size: 1.125rem;
  font-weight: 700;
  border-radius: 16px;
  text-decoration: none;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  position: relative;
  overflow: hidden;
}

.hero-btn::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 ease;
}

.hero-btn:hover::before {
  left: 100%;
}

.hero-btn i {
  width: 24px;
  height: 24px;
  transition: transform 0.3s ease;
}

.hero-btn .btn-arrow {
  width: 20px;
  height: 20px;
  opacity: 0;
  transform: translateX(-10px);
  transition: all 0.3s ease;
}

.hero-btn:hover .btn-arrow {
  opacity: 1;
  transform: translateX(0);
}

.hero-btn:hover i:first-child {
  transform: scale(1.2) rotate(5deg);
}

/* Primary Hero Button */
.hero-btn-primary {
  background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
  color: white;
  border: 2px solid transparent;
}

.hero-btn-primary:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 20px 40px rgba(30, 64, 175, 0.5);
  background: linear-gradient(135deg, #3b82f6 0%, #60a5fa 100%);
}

/* Secondary Hero Button */
.hero-btn-secondary {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.hero-btn-secondary:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 20px 40px rgba(16, 185, 129, 0.4);
  background: linear-gradient(135deg, #10b981 0%, #34d399 100%);
  border-color: transparent;
}

/* Hero Features */
.hero-features {
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
  animation: fadeInUp 1s ease 1s both;
}

.hero-feature {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  color: white;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

.hero-feature i {
  width: 24px;
  height: 24px;
  color: #10b981;
}

.hero-feature:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.4);
}

/* ===== WHY CHOOSE US ===== */
.why-choose-us {
  padding: 8rem 0;
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
  position: relative;
  overflow: hidden;
}

.why-choose-us::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 20% 50%, rgba(30, 64, 175, 0.05) 0%, transparent 50%),
              radial-gradient(circle at 80% 80%, rgba(16, 185, 129, 0.05) 0%, transparent 50%);
  pointer-events: none;
}

/* Section Header */
.section-header {
  text-align: center;
  margin-bottom: 5rem;
  position: relative;
  z-index: 1;
}

.section-badge {
  display: inline-block;
  padding: 0.5rem 1.5rem;
  background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
  color: white;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  animation: fadeInDown 0.8s ease;
}

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

.section-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  background: linear-gradient(135deg, #1e40af 0%, #10b981 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem;
  line-height: 1.2;
  animation: fadeInUp 0.8s ease 0.2s both;
}

.section-description {
  font-size: 1.125rem;
  color: #64748b;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.8;
  animation: fadeInUp 0.8s ease 0.4s both;
}

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

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
  z-index: 1;
}

/* Feature Card */
.feature-card {
  background: white;
  padding: 3rem 2rem;
  border-radius: 24px;
  text-align: center;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  border: 2px solid #e2e8f0;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(30, 64, 175, 0.05) 0%, rgba(16, 185, 129, 0.05) 100%);
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.feature-card:hover {
  transform: translateY(-15px) scale(1.03);
  box-shadow: 0 25px 50px -12px rgba(30, 64, 175, 0.25);
  border-color: #3b82f6;
}

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

/* Icon Wrapper */
.feature-icon-wrapper {
  position: relative;
  width: 100px;
  height: 100px;
  margin: 0 auto 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-icon-bg {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #1e40af 0%, #10b981 100%);
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  animation: morph 8s ease-in-out infinite;
  opacity: 0.1;
  transition: all 0.5s ease;
}

@keyframes morph {
  0%, 100% {
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    transform: translate(-50%, -50%) rotate(0deg);
  }
  25% {
    border-radius: 58% 42% 75% 25% / 76% 46% 54% 24%;
  }
  50% {
    border-radius: 50% 50% 33% 67% / 55% 27% 73% 45%;
    transform: translate(-50%, -50%) rotate(180deg);
  }
  75% {
    border-radius: 33% 67% 58% 42% / 63% 68% 32% 37%;
  }
}

.feature-card:hover .feature-icon-bg {
  opacity: 0.2;
  transform: translate(-50%, -50%) scale(1.2);
}

.feature-icon {
  width: 50px;
  height: 50px;
  color: #1e40af;
  position: relative;
  z-index: 2;
  transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.feature-card:hover .feature-icon {
  transform: scale(1.2) rotate(360deg);
  color: #10b981;
}

/* Feature Number */
.feature-number {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 5rem;
  font-weight: 900;
  color: #1e40af;
  opacity: 0.03;
  line-height: 1;
  transition: all 0.5s ease;
  font-family: 'Poppins', sans-serif;
}

.feature-card:hover .feature-number {
  opacity: 0.08;
  transform: scale(1.1) rotate(5deg);
}

/* Card Content */
.feature-card h3 {
  color: #1e293b;
  margin-bottom: 1rem;
  font-size: 1.5rem;
  font-weight: 700;
  transition: color 0.3s ease;
}

.feature-card:hover h3 {
  color: #1e40af;
}

.feature-card p {
  color: #64748b;
  line-height: 1.8;
  font-size: 1rem;
}

/* Responsive */
@media (max-width: 768px) {
  .why-choose-us {
    padding: 5rem 0;
  }
  
  .section-header {
    margin-bottom: 3rem;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .feature-card {
    padding: 2.5rem 1.5rem;
  }
  
  .feature-icon-wrapper {
    width: 80px;
    height: 80px;
  }
  
  .feature-icon {
    width: 40px;
    height: 40px;
  }
  
  .feature-number {
    font-size: 4rem;
  }
}

/* ===== SERVICES SECTION ===== */
.services {
  padding: 8rem 0;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  position: relative;
  overflow: hidden;
}

.services::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 80% 50%, rgba(16, 185, 129, 0.05) 0%, transparent 50%),
              radial-gradient(circle at 20% 80%, rgba(30, 64, 175, 0.05) 0%, transparent 50%);
  pointer-events: none;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 2.5rem;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
  z-index: 1;
}

/* Service Card */
.service-card {
  background: white;
  border-radius: 24px;
  overflow: hidden;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  border: 2px solid #e2e8f0;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  cursor: pointer;
  position: relative;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(30, 64, 175, 0.05) 0%, rgba(16, 185, 129, 0.05) 100%);
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
  z-index: 1;
}

.service-card:hover {
  transform: translateY(-15px) scale(1.02);
  box-shadow: 0 25px 50px -12px rgba(30, 64, 175, 0.25);
  border-color: #3b82f6;
}

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

/* Service Image */
.service-image-wrapper {
  position: relative;
  width: 100%;
  height: 240px;
  overflow: hidden;
  background: linear-gradient(135deg, #1e40af 0%, #10b981 100%);
}

.service-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover .service-image-wrapper img {
  transform: scale(1.15) rotate(2deg);
  opacity: 0.9;
}

/* Service Overlay */
.service-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(30, 64, 175, 0.9) 0%, rgba(16, 185, 129, 0.9) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all 0.5s ease;
}

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

.service-overlay-icon {
  width: 80px;
  height: 80px;
  color: white;
  transform: scale(0.5) rotate(-180deg);
  transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.service-card:hover .service-overlay-icon {
  transform: scale(1) rotate(0deg);
}

/* Service Content */
.service-content {
  padding: 2rem;
  position: relative;
  z-index: 2;
}

.service-icon-badge {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #1e40af 0%, #10b981 100%);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  box-shadow: 0 10px 25px -5px rgba(30, 64, 175, 0.3);
  transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  transform: translateY(-50px);
  margin-top: -50px;
}

.service-icon-badge i {
  width: 32px;
  height: 32px;
  color: white;
}

.service-card:hover .service-icon-badge {
  transform: translateY(-50px) rotate(360deg) scale(1.1);
  box-shadow: 0 15px 35px -5px rgba(30, 64, 175, 0.4);
}

.service-content h3 {
  color: #1e293b;
  font-size: 1.375rem;
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.3;
  transition: color 0.3s ease;
}

.service-card:hover .service-content h3 {
  color: #1e40af;
}

.service-content p {
  color: #64748b;
  line-height: 1.7;
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

/* Service Link */
.service-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #1e40af;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  padding-bottom: 0.25rem;
}

.service-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #1e40af 0%, #10b981 100%);
  transition: width 0.3s ease;
}

.service-link:hover::after {
  width: 100%;
}

.service-link i {
  width: 18px;
  height: 18px;
  transition: transform 0.3s ease;
}

.service-link:hover {
  color: #10b981;
  gap: 0.75rem;
}

.service-link:hover i {
  transform: translateX(5px);
}

/* Responsive Services */
@media (max-width: 768px) {
  .services {
    padding: 5rem 0;
  }
  
  .services-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .service-image-wrapper {
    height: 200px;
  }
  
  .service-content {
    padding: 1.5rem;
  }
  
  .service-icon-badge {
    width: 50px;
    height: 50px;
    margin-top: -40px;
    transform: translateY(-40px);
  }
  
  .service-icon-badge i {
    width: 28px;
    height: 28px;
  }
  
  .service-card:hover .service-icon-badge {
    transform: translateY(-40px) rotate(360deg) scale(1.1);
  }
}

/* ===== CHAT FAB ===== */
.chat-fab {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 65px;
  height: 65px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  color: var(--white);
  border: none;
  font-size: 2rem;
  cursor: pointer;
  box-shadow: var(--shadow-lg);
  transition: all 0.3s ease;
  z-index: 999;
}

.chat-fab:hover {
  transform: scale(1.15) rotate(5deg);
  box-shadow: var(--shadow-xl);
}

/* ===== CHAT MODAL ===== */
.chat-modal {
  display: none;
  position: fixed;
  bottom: 110px;
  right: 2rem;
  width: 420px;
  max-width: calc(100vw - 2rem);
  background: var(--white);
  border-radius: 20px;
  box-shadow: var(--shadow-xl);
  z-index: 1000;
  border: 2px solid var(--primary);
}

.chat-modal.active {
  display: block;
  animation: slideUp 0.3s ease;
}

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

.chat-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 1.5rem;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: 18px 18px 0 0;
}

.chat-modal-header h3 {
  color: var(--white);
  font-size: 1.25rem;
  font-weight: 700;
}

.chat-close {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: var(--white);
  font-size: 1.5rem;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.chat-close:hover {
  background: var(--white);
  color: var(--primary);
}

.chat-modal-body {
  padding: 1.5rem;
  max-height: 500px;
  overflow-y: auto;
}

/* ===== FOOTER ===== */
.footer {
  background: linear-gradient(135deg, var(--gray-900), var(--gray-800));
  padding: 4rem 0 2rem;
  color: var(--white);
  border-top: 4px solid var(--accent);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 3rem;
  max-width: 1400px;
  margin: 0 auto 3rem;
  padding: 0 2rem;
}

.footer-section h3,
.footer-section h4 {
  color: var(--accent);
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
  font-weight: 700;
}

.footer-section p,
.footer-section li {
  color: var(--gray-300);
  margin-bottom: 0.75rem;
  line-height: 1.8;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li a {
  color: var(--gray-300);
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-block;
}

.footer-section ul li a:hover {
  color: var(--accent);
  transform: translateX(5px);
}

.social-icons {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.social-link {
  font-size: 2rem;
  transition: all 0.3s ease;
  display: inline-block;
}

.social-link:hover {
  transform: scale(1.3) rotate(10deg);
}

.payment-icons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.payment-icons img {
  height: 45px;
  width: auto;
  border-radius: 8px;
  border: 2px solid var(--gray-700);
  transition: all 0.3s ease;
}

.payment-icons img:hover {
  border-color: var(--accent);
  transform: scale(1.1);
}

.newsletter {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.newsletter input {
  flex: 1;
  padding: 1rem;
  border: 2px solid var(--gray-700);
  border-radius: 10px;
  background: var(--gray-800);
  color: var(--white);
  font-size: 1rem;
}

.newsletter input:focus {
  outline: none;
  border-color: var(--accent);
}

.newsletter button {
  padding: 1rem 2rem;
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  color: var(--white);
  border: none;
  border-radius: 10px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
}

.newsletter button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid var(--gray-700);
  color: var(--gray-300);
  max-width: 1400px;
  margin: 0 auto;
  padding-left: 2rem;
  padding-right: 2rem;
}

/* ===== MODAL ===== */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(5px);
}

.modal.active {
  display: flex;
}

.modal-content {
  background: var(--white);
  padding: 2.5rem;
  border-radius: 20px;
  max-width: 700px;
  width: 90%;
  max-height: 85vh;
  overflow-y: auto;
  position: relative;
  box-shadow: var(--shadow-xl);
  border: 2px solid var(--primary);
}

.close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 2rem;
  color: var(--gray-700);
  cursor: pointer;
  background: var(--gray-100);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  transition: all 0.3s ease;
}

.close:hover {
  background: var(--accent);
  color: var(--white);
  transform: rotate(90deg);
}

/* ===== MINI CART ===== */
.mini-cart {
  display: none;
  position: fixed;
  top: 0;
  right: 0;
  width: 420px;
  max-width: 100%;
  height: 100vh;
  background: var(--white);
  box-shadow: var(--shadow-xl);
  z-index: 2000;
  padding: 2rem;
  overflow-y: auto;
  border-left: 3px solid var(--primary);
}

.mini-cart.active {
  display: block;
  animation: slideInRight 0.3s ease;
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
  }
  to {
    transform: translateX(0);
  }
}

.mini-cart-content h3 {
  color: var(--primary);
  margin-bottom: 2rem;
  font-size: 1.75rem;
  font-weight: 700;
}

.cart-items {
  margin-bottom: 2rem;
}

.cart-total {
  padding: 1.5rem 0;
  border-top: 2px solid var(--gray-200);
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1200px) {
  .nav-link span {
    display: none;
  }
  
  .nav-link {
    padding: 0.7rem;
  }
}

@media (max-width: 1024px) {
  .nav {
    display: none;
  }
  
  .hamburger {
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .logo-modern {
    gap: 0.65rem;
  }
  
  .logo-wrapper {
    width: 42px;
    height: 42px;
  }
  
  .logo-title {
    font-size: 1rem;
  }
  
  .logo-subtitle {
    font-size: 0.6rem;
  }
}

@media (max-width: 768px) {
  .hero {
    min-height: 600px;
  }
  
  .slide-content {
    padding: 2rem 1rem;
  }
  
  .hero-badge {
    font-size: 0.8rem;
    padding: 0.6rem 1.2rem;
    margin-bottom: 1.5rem;
  }
  
  .hero-badge i {
    width: 16px;
    height: 16px;
  }
  
  .hero-title {
    font-size: 2.5rem;
    letter-spacing: -1px;
  }
  
  .hero-subtitle {
    font-size: 1.25rem;
  }
  
  .hero-description {
    font-size: 0.95rem;
    margin-bottom: 2rem;
  }
  
  .hero-cta-buttons {
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
  }
  
  .hero-btn {
    width: 100%;
    justify-content: center;
    padding: 1rem 2rem;
    font-size: 1rem;
  }
  
  .hero-features {
    flex-direction: column;
    gap: 1rem;
  }
  
  .hero-feature {
    width: 100%;
    justify-content: center;
    padding: 0.75rem 1rem;
    font-size: 0.85rem;
  }
  
  .hero-feature i {
    width: 20px;
    height: 20px;
  }
  
  .features-grid,
  .services-grid {
    grid-template-columns: 1fr;
    padding: 0 1rem;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    padding: 0 1rem;
  }
  
  .chat-modal {
    right: 1rem;
    width: calc(100vw - 2rem);
  }
  
  .chat-fab {
    bottom: 1.5rem;
    right: 1.5rem;
    width: 60px;
    height: 60px;
  }
}

@media (max-width: 480px) {
  .cta-buttons {
    flex-direction: column;
    padding: 2rem 1rem;
  }
  
  .cta-btn {
    width: 100%;
  }
  
  .header .container {
    padding: 1rem;
  }
}
