body {
  box-sizing: border-box;
}

@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;600;700;800&display=swap');

* {
  font-family: 'Cairo', sans-serif;
  letter-spacing: 0.015em;
  word-spacing: 0.08em;
}

.gradient-bg {
  position: relative;
  background: linear-gradient(135deg, #0a0e27 0%, #1a1f3a 25%, #16213e 50%, #1e2a47 75%, #0f1c35 100%);
}

.gradient-bg::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(circle at 20% 30%, rgba(234, 179, 8, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(59, 130, 246, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(168, 85, 247, 0.05) 0%, transparent 70%);
  z-index: 0;
}

.gradient-bg::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(45deg, transparent 48%, rgba(234, 179, 8, 0.03) 49%, rgba(234, 179, 8, 0.03) 51%, transparent 52%),
    linear-gradient(-45deg, transparent 48%, rgba(59, 130, 246, 0.03) 49%, rgba(59, 130, 246, 0.03) 51%, transparent 52%);
  background-size: 80px 80px;
  z-index: 0;
  animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
  0% { background-position: 0 0, 0 0; }
  100% { background-position: 80px 80px, -80px 80px; }
}

.glass-effect {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-hover {
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn-hover: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:hover:before {
  width: 300px;
  height: 300px;
}

.btn-hover:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.logo-glow {
  text-shadow: 0 0 20px rgba(234, 179, 8, 0.5), 0 0 40px rgba(234, 179, 8, 0.3);
}

.icon-bounce:hover {
  animation: bounce 0.5s ease;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.slideshow-wrapper {
  perspective: 1000px;
}

.slide-track {
  position: relative;
  width: 100%;
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slide-card {
  width: 100%;
  max-width: 700px;
  min-height: 200px;
  background: linear-gradient(135deg, rgba(234, 179, 8, 0.15), rgba(59, 130, 246, 0.15));
  backdrop-filter: blur(10px);
  border: 2px solid rgba(234, 179, 8, 0.3);
  border-radius: 1.5rem;
  padding: 3rem 2.5rem;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: absolute;
  opacity: 0;
  transform: translateY(100%) scale(0.95);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  gap: 2rem;
}

.slide-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transform: rotate(45deg);
  animation: shine 3s infinite;
}

@keyframes shine {
  0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
  100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.slide-card.active {
  opacity: 1;
  transform: translateY(0) scale(1);
  z-index: 10;
}

.slide-card.exit {
  opacity: 0;
  transform: translateY(-100%) scale(0.95);
}

.slide-icon {
  width: 64px;
  height: 64px;
  flex-shrink: 0;
  filter: drop-shadow(0 4px 8px rgba(234, 179, 8, 0.4));
}

.slide-text {
  flex: 1;
  line-height: 1.8;
  letter-spacing: 0.02em;
  word-spacing: 0.15em;
}

.image-slideshow-container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 25px;
  flex-wrap: nowrap;
  padding: 20px 0;
  overflow-x: auto;
  overflow-y: hidden;
}

@media (max-width: 768px) {
  .image-slideshow-container {
    gap: 15px;
    padding: 20px 10px;
  }
}

.image-slide-item {
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: perspective(1000px) rotateY(90deg) scale(0.8);
  transition: all 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
  animation: float 6s ease-in-out infinite;
}

.image-slide-item.active {
  opacity: 1;
  transform: perspective(1000px) rotateY(0deg) scale(1);
}

.image-slide-item:nth-child(2).active {
  transform: perspective(1000px) rotateY(0deg) scale(1.08);
  animation: floatCenter 5s ease-in-out infinite;
}

.image-slide-item:nth-child(1).active,
.image-slide-item:nth-child(3).active {
  transform: perspective(1000px) rotateY(0deg) scale(0.96);
}

.image-slide-item:nth-child(1).active {
  animation-delay: 0s;
}

.image-slide-item:nth-child(2).active {
  animation-delay: 0.5s;
}

.image-slide-item:nth-child(3).active {
  animation-delay: 1s;
}

@keyframes float {
  0%, 100% {
    transform: perspective(1000px) rotateY(0deg) scale(0.96) translateY(0px);
  }
  50% {
    transform: perspective(1000px) rotateY(0deg) scale(0.96) translateY(-10px);
  }
}

@keyframes floatCenter {
  0%, 100% {
    transform: perspective(1000px) rotateY(0deg) scale(1.08) translateY(0px) rotateZ(0deg);
  }
  33% {
    transform: perspective(1000px) rotateY(0deg) scale(1.08) translateY(-15px) rotateZ(1deg);
  }
  66% {
    transform: perspective(1000px) rotateY(0deg) scale(1.08) translateY(-8px) rotateZ(-1deg);
  }
}

@media (max-width: 768px) {
  .image-slide-item {
    flex-shrink: 0;
  }
  
  .image-slide-item.active {
    transform: perspective(1000px) rotateY(0deg) scale(1);
  }
  
  .image-slide-item:nth-child(2).active {
    transform: perspective(1000px) rotateY(0deg) scale(1.05);
  }
  
  .image-slide-item:nth-child(1).active,
  .image-slide-item:nth-child(3).active {
    transform: perspective(1000px) rotateY(0deg) scale(0.98);
  }
}

.rectangular-image-frame {
  width: 240px;
  height: 400px;
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  flex-shrink: 0;
}

.rectangular-image-frame::before {
  content: '';
  position: absolute;
  top: -5px;
  left: -5px;
  right: -5px;
  bottom: -5px;
  background: linear-gradient(45deg, 
    #EAB308, #3B82F6, #A855F7, #10B981, 
    #EAB308, #3B82F6, #A855F7, #10B981);
  background-size: 400% 400%;
  border-radius: 22px;
  z-index: -1;
  animation: gradientFlow 8s ease infinite, borderPulse 3s ease-in-out infinite;
  filter: blur(2px);
}

.rectangular-image-frame::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 20px;
  box-shadow: 
    inset 0 0 20px rgba(234, 179, 8, 0.3),
    0 0 40px rgba(234, 179, 8, 0.4),
    0 10px 50px rgba(0, 0, 0, 0.3);
  pointer-events: none;
  transition: all 0.6s ease;
}

@keyframes gradientFlow {
  0%, 100% { background-position: 0% 50%; }
  25% { background-position: 100% 50%; }
  50% { background-position: 100% 100%; }
  75% { background-position: 0% 100%; }
}

@keyframes borderPulse {
  0%, 100% { 
    transform: scale(1);
    opacity: 1;
  }
  50% { 
    transform: scale(1.02);
    opacity: 0.8;
  }
}

.rectangular-image-frame:hover {
  transform: translateY(-15px) scale(1.08) rotateY(5deg);
}

.rectangular-image-frame:hover::before {
  animation: gradientFlow 3s ease infinite, borderPulse 1.5s ease-in-out infinite;
  filter: blur(4px);
}

.rectangular-image-frame:hover::after {
  box-shadow: 
    inset 0 0 30px rgba(234, 179, 8, 0.5),
    0 0 60px rgba(234, 179, 8, 0.6),
    0 20px 70px rgba(0, 0, 0, 0.4);
}

@media (max-width: 768px) {
  .rectangular-image-frame {
    width: 180px;
    height: 320px;
  }
}

.image-content {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
}

.image-content::before {
  content: '';
  position: absolute;
  top: -100%;
  left: -100%;
  width: 300%;
  height: 300%;
  background: linear-gradient(
    45deg,
    transparent 30%,
    rgba(255, 255, 255, 0.3) 50%,
    transparent 70%
  );
  animation: imageShine 4s ease-in-out infinite;
  pointer-events: none;
}

@keyframes imageShine {
  0% {
    transform: translate(-100%, -100%) rotate(45deg);
  }
  100% {
    transform: translate(100%, 100%) rotate(45deg);
  }
}

.dot-indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  border: 2px solid rgba(234, 179, 8, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
}

.dot-indicator:hover {
  background: rgba(234, 179, 8, 0.6);
  transform: scale(1.2);
}

.dot-indicator.active {
  background: rgba(234, 179, 8, 0.9);
  border-color: rgba(234, 179, 8, 1);
  box-shadow: 0 0 10px rgba(234, 179, 8, 0.6);
}

.scrolling-text-wrapper {
  width: 100%;
  overflow: hidden;
  position: relative;
}

.scrolling-text {
  display: flex;
  white-space: nowrap;
  animation: scroll-left 30s linear infinite;
  font-size: 1.25rem;
  font-weight: bold;
  color: white;
  letter-spacing: 0.03em;
  word-spacing: 0.2em;
}

@keyframes scroll-left {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.scrolling-text span {
  display: inline-block;
}

.home-btn-special {
  position: relative;
  overflow: hidden;
}

.home-btn-special::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, 
    #EAB308, #F59E0B, #FBBF24, #FCD34D,
    #EAB308, #F59E0B, #FBBF24, #FCD34D);
  background-size: 400% 400%;
  border-radius: 1rem;
  z-index: -2;
  animation: homeGradientRotate 6s ease infinite;
  opacity: 0.6;
}

.home-btn-special::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(234, 179, 8, 0.2), rgba(245, 158, 11, 0.2));
  border-radius: 1rem;
  z-index: -1;
}

@keyframes homeGradientRotate {
  0%, 100% {
    background-position: 0% 50%;
  }
  25% {
    background-position: 100% 50%;
  }
  50% {
    background-position: 100% 100%;
  }
  75% {
    background-position: 0% 100%;
  }
}

.home-btn-special:hover::before {
  animation: homeGradientRotate 3s ease infinite;
  opacity: 1;
  filter: brightness(1.3);
}

.home-btn-special:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 15px 40px rgba(234, 179, 8, 0.5), 0 0 50px rgba(234, 179, 8, 0.3);
}

.home-btn-special svg {
  filter: drop-shadow(0 4px 12px rgba(234, 179, 8, 0.6));
  animation: homePulse 2s ease-in-out infinite;
}

@keyframes homePulse {
  0%, 100% {
    transform: scale(1);
    filter: drop-shadow(0 4px 12px rgba(234, 179, 8, 0.6));
  }
  50% {
    transform: scale(1.1);
    filter: drop-shadow(0 6px 16px rgba(234, 179, 8, 0.9));
  }
}

.reviews-btn-special {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.2), rgba(147, 51, 234, 0.2));
}

.reviews-btn-special::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, 
    #A855F7, #9333EA, #7C3AED, #6366F1,
    #A855F7, #9333EA, #7C3AED, #6366F1);
  background-size: 400% 400%;
  border-radius: 1rem;
  z-index: -2;
  animation: reviewsGradientRotate 6s ease infinite;
  opacity: 0.6;
}

.reviews-btn-special::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.2), rgba(147, 51, 234, 0.2));
  border-radius: 1rem;
  z-index: -1;
}

@keyframes reviewsGradientRotate {
  0%, 100% {
    background-position: 0% 50%;
  }
  25% {
    background-position: 100% 50%;
  }
  50% {
    background-position: 100% 100%;
  }
  75% {
    background-position: 0% 100%;
  }
}

.reviews-btn-special:hover::before {
  animation: reviewsGradientRotate 3s ease infinite;
  opacity: 1;
  filter: brightness(1.3);
}

.reviews-btn-special:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 15px 40px rgba(168, 85, 247, 0.5), 0 0 50px rgba(168, 85, 247, 0.3);
}

.reviews-btn-special svg {
  filter: drop-shadow(0 4px 12px rgba(168, 85, 247, 0.6));
  animation: reviewsPulse 2s ease-in-out infinite;
}

@keyframes reviewsPulse {
  0%, 100% {
    transform: scale(1);
    filter: drop-shadow(0 4px 12px rgba(168, 85, 247, 0.6));
  }
  50% {
    transform: scale(1.1);
    filter: drop-shadow(0 6px 16px rgba(168, 85, 247, 0.9));
  }
}

/* Reviews Section Styles */
.star-rating {
  display: flex;
  gap: 8px;
  font-size: 2rem;
  direction: ltr;
  justify-content: center;
}

.star {
  cursor: pointer;
  transition: all 0.2s ease;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.star:hover {
  transform: scale(1.2);
}

.star.active {
  color: #EAB308;
  animation: starPulse 0.3s ease;
}

.star.inactive {
  color: rgba(255, 255, 255, 0.3);
}

@keyframes starPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.3); }
}

.review-card {
  background: linear-gradient(135deg, rgba(234, 179, 8, 0.1), rgba(59, 130, 246, 0.1));
  backdrop-filter: blur(10px);
  border: 2px solid rgba(234, 179, 8, 0.3);
  border-radius: 1.5rem;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.review-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.05), transparent);
  transform: rotate(45deg);
  transition: all 0.5s ease;
}

.review-card:hover::before {
  left: 100%;
}

.review-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(234, 179, 8, 0.3);
  border-color: rgba(234, 179, 8, 0.5);
}

.input-field {
  width: 100%;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(234, 179, 8, 0.3);
  border-radius: 1rem;
  padding: 1rem 1.5rem;
  color: white;
  font-size: 1rem;
  transition: all 0.3s ease;
  font-family: 'Cairo', sans-serif;
  letter-spacing: 0.015em;
}

.input-field:focus {
  outline: none;
  border-color: rgba(234, 179, 8, 0.8);
  background: rgba(255, 255, 255, 0.15);
  box-shadow: 0 0 20px rgba(234, 179, 8, 0.3);
}

.input-field::placeholder {
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.015em;
}

textarea.input-field {
  resize: vertical;
  min-height: 120px;
  font-family: 'Cairo', sans-serif;
}

.submit-btn {
  background: linear-gradient(135deg, #EAB308, #F59E0B);
  border: none;
  border-radius: 1rem;
  padding: 1rem 3rem;
  font-size: 1.25rem;
  font-weight: bold;
  color: white;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(234, 179, 8, 0.4);
  position: relative;
  overflow: hidden;
  letter-spacing: 0.02em;
  word-spacing: 0.12em;
}

.submit-btn:hover:not(:disabled) {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(234, 179, 8, 0.6);
}

.submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.loading-spinner {
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-top: 3px solid #EAB308;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  animation: spin 1s linear infinite;
  display: inline-block;
  margin-left: 10px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.toast {
  position: fixed;
  top: 20px;
  right: 20px;
  background: linear-gradient(135deg, rgba(234, 179, 8, 0.95), rgba(245, 158, 11, 0.95));
  color: white;
  padding: 1rem 2rem;
  border-radius: 1rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  animation: slideIn 0.5s ease, slideOut 0.5s ease 2.5s;
  font-weight: bold;
  letter-spacing: 0.02em;
  word-spacing: 0.12em;
}

@keyframes slideIn {
  from { transform: translateX(400px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

@keyframes slideOut {
  from { transform: translateX(0); opacity: 1; }
  to { transform: translateX(400px); opacity: 0; }
}

.empty-state {
  text-align: center;
  padding: 3rem;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 0.02em;
  word-spacing: 0.12em;
}

.empty-state svg {
  width: 100px;
  height: 100px;
  margin: 0 auto 1rem;
  opacity: 0.5;
}

.stats-card {
  background: linear-gradient(135deg, rgba(234, 179, 8, 0.15), rgba(59, 130, 246, 0.15));
  backdrop-filter: blur(10px);
  border: 2px solid rgba(234, 179, 8, 0.3);
  border-radius: 1.5rem;
  padding: 1.5rem;
  text-align: center;
}

.login-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
  z-index: 999;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease;
}

.login-modal.active {
  display: flex;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-content {
  background: linear-gradient(135deg, #16213e, #1a1f3a);
  border: 2px solid rgba(234, 179, 8, 0.5);
  border-radius: 2rem;
  padding: 2.5rem;
  max-width: 500px;
  width: 90%;
  animation: slideUp 0.3s ease;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

@keyframes slideUp {
  from { transform: translateY(50px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.reviews-section {
  scroll-margin-top: 40px;
}

/* Fix all text spacing */
h1, h2, h3, h4, h5, h6, p, span, label, button, a, div {
  letter-spacing: 0.02em !important;
  word-spacing: 0.12em !important;
}

@view-transition { navigation: auto; }
