:root {
  --primary-color: #303F9F;
  --primary-light: #3F51B5;
  --primary-dark: #1A237E;
  --accent-color: #6169BD;
  --white: #ffffff;
  --text-color: #333333;
  --gray-light: #f5f5f5;
  --gray: #9e9e9e;
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Cairo', sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  direction: rtl;
  background: var(--white);
  color: var(--text-color);
  line-height: 1.6;
}

/* Header Styles */
header {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 95%;
  padding: 1rem 2rem;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  transition: var(--transition);
  border-radius: 20px;
}

header.scrolled {
  background: rgba(255, 255, 255, 0.98);
  padding: 0.8rem 2rem;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.header-logo {
  height: 40px;
  width: auto;
  transition: var(--transition);
}

.header-logo:hover {
  transform: scale(1.05);
}

.logo {
  display: flex;
  align-items: center;
  height: 40px; /* Set fixed height for better alignment */
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: var(--text-color);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-color);
  transition: var(--transition);
}

.nav-links a:hover::after {
  width: 100%;
}

.cta-button {
  background: var(--primary-color);
  color: var(--white);
  border: none;
  padding: 0.8rem 1.8rem;
  border-radius: 25px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow);
}

.cta-button:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  z-index: 1100;
}

.menu-btn svg {
  width: 30px;
  height: 30px;
  fill: var(--primary-color);
  transition: var(--transition);
}

.menu-btn:hover svg {
  transform: scale(1.1);
}

.side-menu {
  position: fixed;
  top: 0;
  right: -300px;
  width: 300px;
  height: 100vh;
  background: linear-gradient(135deg, #ffffff 0%, #f8f9ff 100%);
  box-shadow: -5px 0 25px rgba(0, 0, 0, 0.15);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1050;
  padding: 2rem;
  border-radius: 0 0 0 20px;
}

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

.side-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(48, 63, 159, 0.1);
}

.side-menu-logo {
  height: 40px;
  width: auto;
  transition: var(--transition);
}

.side-menu-logo:hover {
  transform: scale(1.05);
}

.close-menu {
  background: none;
  border: none;
  cursor: pointer;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  background: rgba(48, 63, 159, 0.1);
}

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

.close-menu:hover svg {
  fill: white;
  transform: rotate(90deg);
}

.close-menu svg {
  width: 24px;
  height: 24px;
  fill: var(--primary-color);
  transition: var(--transition);
}

.side-menu-links {
  list-style: none;
  padding: 0;
  margin: 2rem 0;
}

.side-menu-links li {
  margin-bottom: 1rem;
  transform: translateX(50px);
  opacity: 0;
  transition: all 0.3s ease;
}

.side-menu.active .side-menu-links li {
  transform: translateX(0);
  opacity: 1;
}

.side-menu.active .side-menu-links li:nth-child(1) { transition-delay: 0.1s; }
.side-menu.active .side-menu-links li:nth-child(2) { transition-delay: 0.2s; }
.side-menu.active .side-menu-links li:nth-child(3) { transition-delay: 0.3s; }
.side-menu.active .side-menu-links li:nth-child(4) { transition-delay: 0.4s; }
.side-menu.active .side-menu-links li:nth-child(5) { transition-delay: 0.5s; }
.side-menu.active .side-menu-links li:nth-child(6) { transition-delay: 0.6s; }

.side-menu-links a {
  display: flex;
  align-items: center;
  padding: 1rem 1.5rem;
  color: var(--text-color);
  text-decoration: none;
  transition: var(--transition);
  border-radius: 12px;
  background: transparent;
  gap: 1rem;
}

.side-menu-links a:hover {
  background: var(--primary-color);
  color: white;
  transform: translateX(-10px);
}

.side-menu-links a:hover svg {
  fill: white;
  transform: rotate(360deg);
}

.side-menu-links svg {
  width: 24px;
  height: 24px;
  fill: var(--primary-color);
  transition: var(--transition);
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 1040;
}

.overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Hero Section */
#hero {
  background: linear-gradient(135deg, rgba(48, 63, 159, 0.05) 0%, rgba(255, 255, 255, 0.8) 100%);
  position: relative;
  overflow: hidden;
  padding: 140px 2rem 4rem;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
}

.hero-visual {
  position: relative;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
}

.website-builder {
  position: relative;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 20px 40px rgba(48, 63, 159, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  max-width: 600px;
  margin: 2rem auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

#lottie-container {
  width: 100%;
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.builder-svg,
.computer-group,
.person-group,
.code-elements,
.typing-arms,
.cursor {
  display: none;
}

.hero-content {
  flex: 1;
  max-width: 600px;
  position: relative;
  z-index: 2;
  padding: 2rem;
}

.company-name {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 2rem;
  display: flex;
  flex-direction: row-reverse; 
  align-items: baseline;
  gap: 15px;
}

.static-text {
  color: var(--primary-color);
}

.animated-text {
  color: var(--primary-dark);
  position: relative;
  display: inline-block;
}

.animated-text::after {
  display: none;
}

.hero-content p {
  font-size: 1.2rem;
  line-height: 1.8;
  color: #445;
  margin-bottom: 2rem;
  text-shadow: 0 1px 2px rgba(0,0,0,0.05);
  font-weight: 500;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s forwards 1s;
}

.cta-buttons {
  display: flex;
  gap: 1.5rem;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s forwards 1.5s;
}

.primary-btn, .secondary-btn {
  padding: 0.9rem 2rem;
  border-radius: 30px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  gap: 0.8rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(48, 63, 159, 0.2);
}

.primary-btn {
  background: linear-gradient(45deg, var(--primary-dark), var(--primary-color));
  color: var(--white);
  border: none;
}

.primary-btn:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 15px 30px rgba(48, 63, 159, 0.3);
  background: linear-gradient(45deg, var(--primary-color), var(--primary-light));
}

.secondary-btn {
  background: rgba(255, 255, 255, 0.9);
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
}

.secondary-btn:hover {
  background: rgba(48, 63, 159, 0.1);
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(48, 63, 159, 0.15);
}

.ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.7);
  transform: scale(0);
  animation: ripple 0.6s linear;
  pointer-events: none;
}

/* Floating Icons */
.floating-icon {
  position: absolute;
  pointer-events: none;
  z-index: 1;
  font-size: 2.5rem;
  opacity: 0.6;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
  animation: randomFloat 10s linear infinite;
}

.floating-icon:nth-child(1) { 
  top: 20%;
  left: 10%;
  animation-delay: 0s;
}

.floating-icon:nth-child(2) {
  top: 40%;
  right: 15%;
  animation-delay: -3s;
}

.floating-icon:nth-child(3) {
  bottom: 30%;
  left: 20%;
  animation-delay: -6s;
}

.floating-icon:nth-child(4) {
  bottom: 40%;
  right: 10%;
  animation-delay: -9s;
}

@keyframes typewriter {
  from { width: 0; }
  to { width: 100%; }
}

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

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

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes randomFloat {
  0%, 100% {
    transform: translate(0, 0) rotate(0deg);
  }
  25% {
    transform: translate(20px, -20px) rotate(10deg);
  }
  50% {
    transform: translate(-20px, -40px) rotate(-10deg);
  }
  75% {
    transform: translate(10px, -10px) rotate(5deg);
  }
}

@keyframes ripple {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

/* Enhanced Features Section */
#features {
  padding: 6rem 2rem;
  background: linear-gradient(135deg, rgba(48, 63, 159, 0.03) 0%, rgba(255, 255, 255, 0.8) 100%);
  position: relative;
  overflow: hidden;
}

#features h2 {
  text-align: center;
  font-size: 2.8rem;
  margin-bottom: 4rem;
  color: var(--primary-color);
  position: relative;
  display: inline-block;
  left: 50%;
  transform: translateX(-50%);
}

#features h2::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--accent-color);
  border-radius: 2px;
  animation: pulseWidth 2s infinite;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem;
}

.feature-card {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 20px;
  padding: 2.5rem 2rem;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(48, 63, 159, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 300px;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, transparent, rgba(63, 81, 181, 0.03), transparent);
  transform: translateX(-100%);
  transition: 0.5s;
}

.feature-card:hover {
  transform: translateY(-15px);
  box-shadow: 0 20px 40px rgba(48, 63, 159, 0.15);
  border-color: var(--primary-color);
}

.feature-card:hover::before {
  transform: translateX(100%);
}

.feature-icon {
  width: 90px;
  height: 90px;
  margin: 0 auto 2rem;
  position: relative;
  background: linear-gradient(135deg, rgba(48, 63, 159, 0.1) 0%, rgba(255, 255, 255, 0.1) 100%);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s ease;
}

.feature-card:hover .feature-icon {
  transform: scale(1.1) rotate(5deg);
  background: linear-gradient(135deg, rgba(48, 63, 159, 0.2) 0%, rgba(255, 255, 255, 0.2) 100%);
}

.feature-svg {
  width: 50px;
  height: 50px;
  transition: all 0.4s ease;
}

.feature-card:hover .feature-svg {
  transform: scale(1.1);
}

.feature-card h3 {
  color: var(--primary-color);
  font-size: 1.5rem;
  margin-bottom: 1rem;
  position: relative;
  padding-bottom: 1rem;
}

.feature-card h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 3px;
  background: var(--accent-color);
  border-radius: 2px;
  transition: all 0.4s ease;
}

.feature-card:hover h3::after {
  width: 60px;
}

.feature-card p {
  color: var(--text-color);
  font-size: 1.1rem;
  line-height: 1.6;
  opacity: 0.8;
  margin-top: 1rem;
  flex-grow: 1;
}

@keyframes pulseWidth {
  0%, 100% { width: 80px; }
  50% { width: 100px; }
}

@media (max-width: 768px) {
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  #features h2 {
    font-size: 2.2rem;
    margin-bottom: 3rem;
  }
  
  .feature-card {
    min-height: auto;
    padding: 2rem 1.5rem;
  }
}

/* Enhanced Pricing Section */
#pricing {
  padding: 6rem 2rem;
  background: linear-gradient(135deg, var(--gray-light) 0%, var(--white) 100%);
}

#pricing h2 {
  text-align: center;
  font-size: 2.8rem;
  margin-bottom: 3rem;
  color: var(--primary-color);
  position: relative;
}

#pricing h2::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--accent-color);
  border-radius: 2px;
}

.pricing-banner {
  max-width: 1000px;
  margin: 0 auto;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  border-radius: 30px;
  padding: 3rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(48, 63, 159, 0.2);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.pricing-content {
  flex: 1;
  color: white;
  position: relative;
  z-index: 2;
}

.pricing-header {
  margin-bottom: 2rem;
}

.price-tag {
  display: inline-flex;
  align-items: baseline;
  background: rgba(255, 255, 255, 0.1);
  padding: 1rem 2rem;
  border-radius: 20px;
  margin-bottom: 1.5rem;
}

.currency {
  font-size: 1.2rem;
  margin-left: 0.5rem;
}

.amount {
  font-size: 3rem;
  font-weight: bold;
}

.period {
  font-size: 1rem;
  opacity: 0.8;
  margin-right: 0.5rem;
}

.pricing-header h3 {
  font-size: 2rem;
  margin: 0;
}

.pricing-description {
  margin-bottom: 2rem;
}

.pricing-description p {
  font-size: 1.1rem;
  opacity: 0.9;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.highlight-features {
  list-style: none;
  padding: 0;
  margin: 0;
}

.highlight-features li {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.highlight-features svg {
  width: 24px;
  height: 24px;
  fill: var(--accent-color);
}

.pricing-cta {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  background: var(--accent-color);
  color: white;
  text-decoration: none;
  padding: 1rem 2rem;
  border-radius: 25px;
  font-weight: 600;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.pricing-cta:hover {
  background: white;
  color: var(--accent-color);
  border-color: var(--accent-color);
  transform: translateY(-3px);
}

.pricing-cta svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.pricing-decoration {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 40%;
  pointer-events: none;
}

.decoration-circle {
  position: absolute;
  width: 300px;
  height: 300px;
  border: 2px dashed rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  top: 50%;
  right: -150px;
  transform: translateY(-50%);
}

.decoration-line {
  position: absolute;
  width: 2px;
  height: 80%;
  background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.1), transparent);
  top: 10%;
  right: 100px;
}

.decoration-dots {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0.2;
  background-image: radial-gradient(circle, white 1px, transparent 1px);
  background-size: 20px 20px;
}

@media (max-width: 768px) {
  .pricing-banner {
    padding: 2rem;
    text-align: center;
  }

  .price-tag {
    justify-content: center;
  }

  .highlight-features li {
    justify-content: center;
  }

  .pricing-decoration {
    display: none;
  }
}

/* Enhanced Services Section Styles */
#services {
  padding: 6rem 2rem;
  background: linear-gradient(135deg, rgba(48, 63, 159, 0.02) 0%, rgba(255, 255, 255, 0.8) 100%);
  position: relative;
  overflow: hidden;
}

#services h2 {
  text-align: center;
  font-size: 3.2rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
  position: relative;
  font-weight: 700;
}

#services h2::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
  border-radius: 2px;
}

.services-subtitle {
  text-align: center;
  font-size: 1.3rem;
  color: var(--text-color);
  opacity: 0.9;
  margin-bottom: 4rem;
  font-weight: 500;
}

.services-slider-container {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  padding: 2rem 0;
}

.services-slider {
  position: relative;
  height: 450px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(48, 63, 159, 0.1);
  backdrop-filter: blur(10px);
}

.service-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 3rem;
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0;
  transform: translateX(100%);
}

.service-slide.active {
  opacity: 1;
  transform: translateX(0);
}

.service-content {
  flex: 1.2;
  padding: 2rem;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.5s ease 0.3s;
  max-width: 600px;
}

.service-slide.active .service-content {
  opacity: 1;
  transform: translateY(0);
}

.service-title {
  font-size: 2.4rem;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  font-weight: 700;
  position: relative;
  padding-right: 20px;
}

.service-title::before {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 100%;
  background: var(--accent-color);
  border-radius: 2px;
}

.service-description {
  font-size: 1.2rem;
  line-height: 1.8;
  color: var(--text-color);
  margin-bottom: 2rem;
  opacity: 0.9;
}

.service-illustration {
  flex: 0.8;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateX(50px);
  transition: all 0.5s ease 0.5s;
  position: relative;
}

.service-slide.active .service-illustration {
  opacity: 1;
  transform: translateX(0);
}

.service-icon {
  width: 120px;
  height: 120px;
  fill: var(--primary-color);
  filter: drop-shadow(0 10px 20px rgba(48, 63, 159, 0.2));
  transition: all 0.3s ease;
}

.service-slide:hover .service-icon {
  transform: scale(1.05) rotate(5deg);
  fill: var(--accent-color);
}

.slider-dots {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}

.slider-dot {
  width: 12px;
  height: 12px;
  border-radius: 6px;
  border: none;
  background: rgba(48, 63, 159, 0.2);
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}

.slider-dot.active {
  width: 32px;
  background: var(--primary-color);
}

.slider-dot:hover {
  background: var(--primary-color);
  transform: scale(1.1);
}

@media (max-width: 768px) {
  #services {
    padding: 4rem 1rem;
  }

  #services h2 {
    font-size: 2.5rem;
  }

  .services-subtitle {
    font-size: 1.1rem;
    margin-bottom: 3rem;
  }

  .services-slider {
    height: auto;
    min-height: 600px;
  }

  .service-slide {
    flex-direction: column;
    text-align: center;
    padding: 2rem;
  }

  .service-content {
    padding: 1rem;
  }

  .service-title {
    font-size: 2rem;
    padding-right: 0;
    padding-bottom: 20px;
  }

  .service-title::before {
    top: auto;
    bottom: 0;
    right: 50%;
    transform: translateX(50%);
    width: 60px;
    height: 4px;
  }

  .service-icon {
    width: 120px;
    height: 120px;
  }
}

/* Enhanced Footer Styles */
footer {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
  padding: 4rem 2rem;
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  position: relative;
  z-index: 2;
}

.footer-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.footer-logo {
  width: 180px;
  filter: brightness(0) invert(1);
  transition: var(--transition);
}

.footer-logo:hover {
  transform: scale(1.05);
}

.footer-description {
  font-size: 1.1rem;
  line-height: 1.6;
  opacity: 0.9;
}

.footer-section {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.footer-section h3 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
  position: relative;
}

.footer-section h3::after {
  content: '';
  position: absolute;
  bottom: -8px;
  right: 0;
  width: 40px;
  height: 3px;
  background: var(--accent-color);
  border-radius: 2px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-links a {
  color: var(--white);
  text-decoration: none;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-links a:hover {
  transform: translateX(-10px);
  color: var(--accent-color);
}

.footer-links svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

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

.social-link {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.social-link:hover {
  background: var(--accent-color);
  transform: translateY(-5px) rotate(360deg);
}

.social-link svg {
  width: 20px;
  height: 20px;
  fill: var(--white);
  transition: all 0.3s ease;
}

.newsletter-form {
  position: relative;
  margin-top: 1rem;
}

.newsletter-input {
  width: 100%;
  padding: 1rem 1.5rem;
  border-radius: 25px;
  border: none;
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  font-size: 1rem;
}

.newsletter-input::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.newsletter-button {
  position: absolute;
  left: 5px;
  top: 5px;
  padding: 0.7rem 1.5rem;
  border-radius: 20px;
  border: none;
  background: var(--accent-color);
  color: var(--white);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.newsletter-button:hover {
  background: var(--primary-light);
  transform: translateY(-2px);
}

.footer-bottom {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  opacity: 0.8;
}

.footer-wave {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320'%3E%3Cpath fill='%23ffffff' fill-opacity='0.1' d='M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,112C672,96,768,96,864,112C960,128,1056,160,1152,160C1248,160,1344,128,1392,112L1440,96L1440,0L1392,0C1344,0,1248,0,1152,0C1056,0,960,0,864,0C768,0,672,0,576,0C480,0,384,0,288,0C192,0,96,0,48,0L0,0Z'%3E%3C/path%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: cover;
}

/* Responsive Design */
@media (max-width: 968px) {
  .nav-links {
    display: none;
  }
  
  .menu-btn {
    display: block;
  }
  
  #hero {
    flex-direction: column;
    text-align: center;
    padding-top: 6rem;
  }
  
  .hero-content {
    margin-bottom: 3rem;
  }
  
  .cta-buttons {
    justify-content: center;
  }
  
  .hero-content h1 {
    font-size: 2.5rem;
  }
}

@media (max-width: 480px) {
  .cta-buttons {
    flex-direction: column;
    gap: 1rem;
  }
  
  .feature-card {
    padding: 1.5rem;
  }
}

@media (max-width: 768px) {
  .pricing-cards {
    grid-template-columns: 1fr;
    padding: 1rem;
  }
  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-section h3::after {
    right: 50%;
    transform: translateX(50%);
  }

  .footer-links a:hover {
    transform: translateX(0) scale(1.05);
  }

  .footer-social {
    justify-content: center;
  }
}

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

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

/* Success Stories Section */
#success {
  padding: 6rem 2rem;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  color: white;
  position: relative;
  overflow: hidden;
}

.success-container {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.success-header {
  margin-bottom: 4rem;
}

.success-header h2 {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: white;
}

.success-header p {
  font-size: 1.2rem;
  opacity: 0.9;
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.8;
}

.success-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.success-card {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 2.5rem;
  backdrop-filter: blur(10px);
  transform: scale(1);
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.2);
  overflow: hidden;
}

.success-card:hover {
  transform: translateY(-10px);
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
}

.success-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 1.5rem;
  fill: var(--accent-color);
}

.success-counter {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  background: linear-gradient(45deg, #fff, #f0f0f0);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.success-label {
  font-size: 1.1rem;
  opacity: 0.9;
}

.success-decoration {
  position: absolute;
  opacity: 0.1;
}

.success-decoration.top-right {
  top: 0;
  right: 0;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, transparent 70%);
}

.success-decoration.bottom-left {
  bottom: 0;
  left: 0;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, transparent 70%);
}

@media (max-width: 768px) {
  .success-grid {
    grid-template-columns: 1fr;
  }
  
  .success-card {
    padding: 2rem;
  }
  
  .success-counter {
    font-size: 2.5rem;
  }
}

/* FAQ Section Styles */
#faq {
  padding: 6rem 2rem;
  background: linear-gradient(135deg, #ffffff 0%, var(--gray-light) 100%);
  position: relative;
  overflow: hidden;
}

#faq h2 {
  text-align: center;
  font-size: 2.8rem;
  margin-bottom: 3rem;
  color: var(--primary-color);
  position: relative;
}

#faq h2::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--accent-color);
  border-radius: 2px;
}

.faq-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem;
}

.faq-item {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 15px;
  margin-bottom: 1.5rem;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  border: 1px solid rgba(48, 63, 159, 0.1);
  overflow: hidden;
}

.faq-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(48, 63, 159, 0.15);
}

.faq-question {
  padding: 1.5rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  background: linear-gradient(45deg, rgba(48, 63, 159, 0.02), transparent);
  transition: all 0.3s ease;
  border: none;
  width: 100%;
  text-align: right;
}

.faq-question:hover {
  background: linear-gradient(45deg, rgba(48, 63, 159, 0.05), transparent);
}

.faq-question h3 {
  font-size: 1.2rem;
  color: var(--primary-color);
  margin: 0;
  font-weight: 600;
}

.faq-icon {
  width: 24px;
  height: 24px;
  fill: var(--primary-color);
  transition: transform 0.3s ease;
}

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

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s cubic-bezier(0, 1, 0, 1);
  padding: 0 2rem;
  color: var(--text-color);
  line-height: 1.6;
  font-size: 1.1rem;
}

.faq-item.active .faq-answer {
  max-height: 1000px;
  transition: max-height 1s ease-in-out;
  padding: 1rem 2rem 2rem;
}

.faq-background {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  pointer-events: none;
  opacity: 0.5;
}

.faq-circle {
  position: absolute;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(48, 63, 159, 0.05) 0%, transparent 70%);
}

.faq-circle:nth-child(1) {
  width: 300px;
  height: 300px;
  top: -150px;
  right: -150px;
}

.faq-circle:nth-child(2) {
  width: 200px;
  height: 200px;
  bottom: -100px;
  left: -100px;
}

@media (max-width: 768px) {
  #faq {
    padding: 4rem 1rem;
  }

  #faq h2 {
    font-size: 2.2rem;
  }

  .faq-question h3 {
    font-size: 1.1rem;
  }

  .faq-answer {
    font-size: 1rem;
  }
}

/* Final CTA Section */
#final-cta {
  padding: 8rem 2rem;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
  position: relative;
  overflow: hidden;
}

.cta-container {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--white);
}

.cta-content {
  position: relative;
  z-index: 2;
  padding: 2rem;
}

.cta-content h2 {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  background: linear-gradient(45deg, #ffffff, #f0f0f0);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.cta-content p {
  font-size: 1.5rem;
  margin-bottom: 3rem;
  line-height: 1.6;
  opacity: 0.9;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.final-cta-button {
  background: var(--accent-color);
  color: var(--white);
  border: none;
  padding: 1.2rem 3rem;
  font-size: 1.3rem;
  font-weight: 600;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  position: relative;
  overflow: hidden;
}

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

.final-cta-button:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 20px 40px rgba(255, 64, 129, 0.3);
  background: #5017FF;
}

.final-cta-button:hover::before {
  transform: translateX(100%);
}

.final-cta-button svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
  transition: transform 0.3s ease;
}

.final-cta-button:hover svg {
  transform: translateX(5px);
}

.cta-decoration {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.decoration-circle {
  position: absolute;
  width: 400px;
  height: 400px;
  border: 2px dashed rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: rotate 30s linear infinite;
}

.decoration-pattern {
  position: absolute;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
  background-size: 30px 30px;
  opacity: 0.5;
}

@keyframes rotate {
  from {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

@media (max-width: 768px) {
  #final-cta {
    padding: 4rem 1rem;
  }

  .cta-content h2 {
    font-size: 2.5rem;
  }

  .cta-content p {
    font-size: 1.2rem;
  }

  .final-cta-button {
    padding: 1rem 2rem;
    font-size: 1.1rem;
  }
}

/* Enhanced Courses Section Styles */
#courses {
  padding: 6rem 2rem;
  background: linear-gradient(135deg, var(--white) 0%, var(--gray-light) 100%);
}

#courses h2 {
  text-align: center;
  font-size: 2.8rem;
  margin-bottom: 3rem;
  color: var(--primary-color);
}

.courses-filters {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 0.8rem 1.5rem;
  border: 2px solid var(--primary-color);
  background: transparent;
  color: var(--primary-color);
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 600;
}

.filter-btn.active,
.filter-btn:hover {
  background: var(--primary-color);
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(48, 63, 159, 0.2);
}

.trending-courses {
  background: white;
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  margin-bottom: 4rem;
  transform: translateY(0);
  transition: all 0.3s ease;
}

.trending-courses:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.trending-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid rgba(48, 63, 159, 0.1);
}

.trending-icon {
  width: 30px;
  height: 30px;
  fill: var(--accent-color);
  animation: pulse 2s infinite;
}

.trending-header h3 {
  font-size: 1.8rem;
  color: var(--primary-color);
  margin: 0;
}

.courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.course-card {
  height: 350px;
  perspective: 1000px;
}

.course-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.8s;
  transform-style: preserve-3d;
  cursor: pointer;
}

.course-card:hover .course-card-inner {
  transform: rotateY(180deg);
}

.course-front,
.course-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 20px;
  padding: 2rem;
}

.course-front {
  background: white;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.course-back {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  color: white;
  transform: rotateY(180deg);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.course-icon {
  width: 80px;
  height: 80px;
  background: rgba(48, 63, 159, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  transition: all 0.3s ease;
}

.course-front:hover .course-icon {
  transform: scale(1.1) rotate(5deg);
  background: rgba(48, 63, 159, 0.2);
}

.course-icon svg {
  width: 40px;
  height: 40px;
  fill: var(--primary-color);
  transition: all 0.3s ease;
}

.course-front h3 {
  font-size: 1.5rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
  position: relative;
}

.course-front h3::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--primary-color);
  transition: width 0.3s ease;
}

.course-front:hover h3::after {
  width: 50px;
}

.course-front p {
  color: var(--text-color);
  margin-bottom: 1.5rem;
  line-height: 1.6;
  opacity: 0.9;
}

.course-meta {
  display: flex;
  gap: 2rem;
  color: var(--gray);
  font-size: 0.9rem;
}

.course-back h4 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  color: white;
}

.course-back ul {
  list-style: none;
  padding: 0;
  margin-bottom: 2rem;
}

.course-back li {
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  opacity: 0.9;
}

.course-back li::before {
  content: '•';
  color: var(--accent-color);
  font-size: 1.5rem;
}

.course-btn {
  background: var(--accent-color);
  color: white;
  border: none;
  padding: 0.8rem 1.5rem;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 600;
  align-self: center;
}

.course-btn:hover {
  background: white;
  color: var(--accent-color);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(255, 64, 129, 0.3);
}

.course-promo {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  border-radius: 20px;
  padding: 3rem;
  color: white;
  text-align: center;
  margin-top: 4rem;
  position: relative;
  overflow: hidden;
}

.course-promo::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transform: translateX(-100%);
  transition: 0.5s;
}

.course-promo:hover::before {
  transform: translateX(100%);
}

.promo-content h3 {
  font-size: 2rem;
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
}

.promo-content h3::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 3px;
  background: var(--accent-color);
  border-radius: 2px;
}

.promo-content p {
  opacity: 0.9;
  margin-bottom: 2rem;
  font-size: 1.1rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.promo-btn {
  background: white;
  color: var(--primary-color);
  border: none;
  padding: 1rem 2rem;
  border-radius: 25px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.promo-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  background: var(--accent-color);
  color: white;
}

@media (max-width: 768px) {
  #courses {
    padding: 4rem 1rem;
  }

  #courses h2 {
    font-size: 2.2rem;
  }

  .trending-courses {
    padding: 1.5rem;
  }

  .courses-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .course-card {
    height: auto;
    min-height: 350px;
  }

  .course-front,
  .course-back {
    padding: 1.5rem;
  }

  .course-promo {
    padding: 2rem;
  }

  .promo-content h3 {
    font-size: 1.5rem;
  }
}

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

/* News Section Styles */
#news {
  padding: 6rem 2rem;
  background: linear-gradient(135deg, var(--gray-light) 0%, var(--white) 100%);
}

#news h2 {
  text-align: center;
  font-size: 2.8rem;
  margin-bottom: 3rem;
  color: var(--primary-color);
}

.news-filters {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.weekly-highlight {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  border-radius: 20px;
  padding: 3rem;
  margin-bottom: 4rem;
  position: relative;
  overflow: hidden;
}

.highlight-content {
  position: relative;
  z-index: 2;
  color: white;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.highlight-badge {
  background: var(--accent-color);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 15px;
  font-size: 0.9rem;
  display: inline-block;
  margin-bottom: 1rem;
}

.highlight-content h3 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.highlight-content p {
  opacity: 0.9;
  margin-bottom: 2rem;
  font-size: 1.1rem;
}

.highlight-btn {
  background: white;
  color: var(--primary-color);
  border: none;
  padding: 0.8rem 1.5rem;
  border-radius: 25px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.highlight-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.news-card {
  height: 300px;
  perspective: 1000px;
}

.news-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.8s;
  transform-style: preserve-3d;
  cursor: pointer;
}

.news-card:hover .news-card-inner {
  transform: rotateY(180deg);
}

.news-front,
.news-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 20px;
  padding: 2rem;
}

.news-front {
  background: white;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.news-back {
  background: var(--primary-color);
  color: white;
  transform: rotateY(180deg);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.news-icon {
  width: 60px;
  height: 60px;
  background: rgba(48, 63, 159, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.news-icon svg {
  width: 30px;
  height: 30px;
  fill: var(--primary-color);
}

.news-front h3 {
  font-size: 1.3rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.news-front p,
.news-back p {
  margin-bottom: 1.5rem;
}

.news-btn {
  background: var(--accent-color);
  color: white;
  border: none;
  padding: 0.8rem 1.5rem;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.news-btn:hover {
  background: white;
  color: var(--accent-color);
}

@media (max-width: 768px) {
  #courses,
  #news {
    padding: 4rem 1rem;
  }

  #courses h2,
  #news h2 {
    font-size: 2.2rem;
  }

  .course-promo,
  .weekly-highlight {
    padding: 2rem;
  }

  .highlight-content h3 {
    font-size: 1.5rem;
  }
}

#testimonials {
  padding: 6rem 2rem;
  background: linear-gradient(135deg, var(--white) 0%, var(--gray-light) 100%);
  position: relative;
  overflow: hidden;
}

#testimonials h2 {
  text-align: center;
  font-size: 2.8rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.testimonials-subtitle {
  text-align: center;
  font-size: 1.2rem;
  color: var(--text-color);
  margin-bottom: 4rem;
  opacity: 0.8;
}

.testimonials-container {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}

.chat-container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding: 2rem;
  position: relative;
}

.chat-message {
  display: flex;
  gap: 1rem;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.5s forwards;
}

.chat-message.right {
  flex-direction: row-reverse;
}

.chat-avatar {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
  flex-shrink: 0;
}

.message-content {
  background: white;
  padding: 1.5rem;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  position: relative;
  max-width: 600px;
  transition: transform 0.3s ease;
}

.chat-message.right .message-content {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  color: white;
}

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

.message-content::before {
  content: '';
  position: absolute;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 10px;
}

.chat-message:not(.right) .message-content::before {
  left: -20px;
  top: 20px;
  border-color: transparent white transparent transparent;
}

.chat-message.right .message-content::before {
  right: -20px;
  top: 20px;
  border-color: transparent transparent transparent var(--primary-color);
}

.client-info {
  margin-bottom: 0.5rem;
}

.client-info h4 {
  font-size: 1.2rem;
  margin: 0;
  color: inherit;
}

.client-title {
  font-size: 0.9rem;
  opacity: 0.8;
}

.rating {
  margin-top: 1rem;
  font-size: 1.2rem;
}

.testimonials-stats {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 4rem;
}

.stat-card {
  background: white;
  padding: 2rem;
  border-radius: 15px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  min-width: 200px;
}

.stat-card:hover {
  transform: translateY(-10px);
}

.stat-icon {
  width: 40px;
  height: 40px;
  fill: var(--primary-color);
  margin-bottom: 1rem;
}

.stat-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: var(--primary-color);
}

.stat-card p {
  font-size: 2rem;
  font-weight: bold;
  color: var(--text-color);
}

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

@media (max-width: 768px) {
  .testimonials-container {
    padding: 1rem;
  }

  .chat-message {
    flex-direction: column;
    align-items: flex-start;
  }

  .chat-message.right {
    flex-direction: column;
    align-items: flex-end;
  }

  .message-content {
    max-width: 100%;
  }

  .message-content::before {
    display: none;
  }

  .testimonials-stats {
    flex-direction: column;
    align-items: center;
  }

  .stat-card {
    width: 100%;
    max-width: 300px;
  }
}

/* AI Tools Popup Styles */
.ai-tools-popup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.7);
  background: linear-gradient(135deg, #ffffff 0%, #f8f9ff 100%);
  padding: 2rem;
  border-radius: 20px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  max-width: 90%;
  width: 500px;
}

.ai-tools-popup.active {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%) scale(1);
}

.ai-tools-header {
  text-align: center;
  margin-bottom: 2rem;
}

.ai-tools-header h3 {
  color: var(--primary-color);
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.ai-tools-header p {
  color: var(--text-color);
  font-size: 1.1rem;
  opacity: 0.9;
}

.ai-tools-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.ai-tool-btn {
  background: white;
  border: 2px solid var(--primary-color);
  padding: 1rem;
  border-radius: 15px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.ai-tool-btn:hover {
  background: var(--primary-color);
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(48, 63, 159, 0.2);
}

.ai-tool-btn:hover svg {
  fill: white;
}

.ai-tool-btn:hover span {
  color: white;
}

.ai-tool-icon {
  width: 30px;
  height: 30px;
  fill: var(--primary-color);
  transition: all 0.3s ease;
}

.ai-tool-btn span {
  color: var(--primary-color);
  font-weight: 600;
  transition: all 0.3s ease;
}

.close-popup {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.close-popup svg {
  width: 24px;
  height: 24px;
  fill: var(--gray);
  transition: all 0.3s ease;
}

.close-popup:hover svg {
  fill: var(--primary-color);
  transform: rotate(90deg);
}

.ai-tools-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(5px);
  z-index: 1999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.ai-tools-overlay.active {
  opacity: 1;
  visibility: visible;
}

@media (max-width: 768px) {
  .ai-tools-grid {
    grid-template-columns: 1fr;
  }
  
  .ai-tool-btn {
    flex-direction: row;
    justify-content: center;
  }
}

/* Video Modal Styles */
.video-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.video-modal.active {
  opacity: 1;
  visibility: visible;
}

.video-container {
  position: relative;
  width: 90%;
  max-width: 1000px;
  background: white;
  border-radius: 20px;
  padding: 2rem;
  text-align: center;
  transform: scale(0.7);
  transition: transform 0.3s ease;
}

.video-modal.active .video-container {
  transform: scale(1);
}

.video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  margin-bottom: 2rem;
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 10px;
}

.close-video {
  position: absolute;
  top: -20px;
  right: -20px;
  width: 40px;
  height: 40px;
  background: var(--primary-color);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

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

.close-video svg {
  width: 24px;
  height: 24px;
  fill: white;
}

.video-message {
  color: var(--primary-color);
  font-size: 1.3rem;
  font-weight: 600;
  margin: 1.5rem 0;
  line-height: 1.6;
}

.video-watermark {
  position: absolute;
  bottom: 20px;
  right: 20px;
  width: 100px;
  opacity: 0.5;
  pointer-events: none;
}

@media (max-width: 768px) {
  .video-container {
    width: 95%;
    padding: 1rem;
  }
  
  .close-video {
    top: -15px;
    right: -15px;
    width: 35px;
    height: 35px;
  }
  
  .video-message {
    font-size: 1.1rem;
  }
}