@import "tailwindcss";

/* Custom styles for the Simple POS landing page */

/* Font family */
.font-inter {
  font-family: "Inter", sans-serif;
}

/* Custom brand colors */
:root {
  --brand-green: #c1ee33;
  --brand-green-hover: #b8e01f;
}

/* Base body styles */
body {
  font-family: "Inter", sans-serif;
  line-height: 1.6;
}
.loading {
  display: none;
  align-items: center;
  color: #666;
}

.loading svg {
  width: 20px;
  height: 20px;
  margin-right: 8px;
}

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

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

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

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

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

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

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

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

/* Scroll Animation Classes */
.scroll-hidden {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

.scroll-fade-in {
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.scroll-fade-in.visible {
  opacity: 1;
}

.scroll-slide-up {
  opacity: 0;
  transform: translateY(60px);
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.scroll-slide-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.scroll-slide-left {
  opacity: 0;
  transform: translateX(-60px);
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.scroll-slide-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.scroll-slide-right {
  opacity: 0;
  transform: translateX(60px);
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.scroll-slide-right.visible {
  opacity: 1;
  transform: translateX(0);
}

.scroll-scale {
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.scroll-scale.visible {
  opacity: 1;
  transform: scale(1);
}

.scroll-rotate {
  opacity: 0;
  transform: rotate(-10deg) scale(0.9);
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.scroll-rotate.visible {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

/* Staggered animation delays */
.scroll-delay-100 {
  transition-delay: 100ms;
}

.scroll-delay-200 {
  transition-delay: 200ms;
}

.scroll-delay-300 {
  transition-delay: 300ms;
}

.scroll-delay-400 {
  transition-delay: 400ms;
}

.scroll-delay-500 {
  transition-delay: 500ms;
}

/* RTL specific scroll animations */
[dir="rtl"] .scroll-slide-left {
  transform: translateX(60px);
}

[dir="rtl"] .scroll-slide-right {
  transform: translateX(-60px);
}

/* Animation utility classes */
.float-animation {
  animation: float 6s ease-in-out infinite;
}

.animate-fade-in-up {
  animation: fadeInUp 0.6s ease-out forwards;
}

.animate-fade-in-down {
  animation: fadeInDown 0.6s ease-out forwards;
}

.animate-fade-in-left {
  animation: fadeInLeft 0.6s ease-out forwards;
}

.animate-fade-in-right {
  animation: fadeInRight 0.6s ease-out forwards;
}

.animate-fade-in {
  animation: fadeIn 0.8s ease-out forwards;
}

.animate-scale-in {
  animation: scaleIn 0.6s ease-out forwards;
}

.animate-slide-in-up {
  animation: slideInUp 0.8s ease-out forwards;
}

.animate-pulse {
  animation: pulse 2s infinite;
}

/* Gradient backgrounds */
.gradient-bg {
  background: linear-gradient(135deg, #000000 0%, #1a1a1a 100%);
}

/* Custom card styles */
.feature-card {
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.feature-card:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

/* Custom button hover effects */
.btn-primary {
  background-color: var(--brand-green);
  color: #000000;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background-color: var(--brand-green-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(193, 238, 51, 0.3);
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #1a1a1a;
}

::-webkit-scrollbar-thumb {
  background: var(--brand-green);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--brand-green-hover);
}

/* Mobile optimizations */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
    line-height: 1.2;
  }

  .hero-subtitle {
    font-size: 1.125rem;
  }

  .feature-card {
    margin-bottom: 2rem;
  }
  .sliding-item {
    min-width: 200px;
    padding: 0 1rem;
  }

  .sliding-item span {
    font-size: 0.875rem;
  }

  /* RTL mobile adjustments */
  [dir="rtl"] .sliding-item {
    min-width: 250px;
    padding: 0 1.5rem;
  }
}

/* Section backgrounds */
.section-dark {
  background-color: #000000;
}

.section-light {
  background-color: #ffffff;
}

.section-accent {
  background-color: #ebffac;
}

/* Form styles */
.form-input {
  transition: all 0.3s ease;
}

.form-input:focus {
  border-color: var(--brand-green);
  box-shadow: 0 0 0 3px rgba(193, 238, 51, 0.1);
}

/* Dashboard preview styles */
.dashboard-preview {
  position: relative;
  z-index: 10;
}

.floating-card {
  backdrop-filter: blur(10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

.floating-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
}

/* Navigation styles */
.nav-link {
  transition: color 0.3s ease;
  position: relative;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--brand-green);
  transition: width 0.3s ease;
}

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

/* Feature section styling */
.feature-section {
  position: relative;
  overflow: hidden;
}

.feature-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(193, 238, 51, 0.05) 50%,
    transparent 100%
  );
  pointer-events: none;
}

/* Performance optimizations */
.will-change-transform {
  will-change: transform;
}
.sliding-container {
  width: 100%;
  overflow: hidden;
  position: relative;
}

.sliding-track {
  display: flex;
  animation: slideInfinite 30s linear infinite;
  gap: 4rem;
}

.sliding-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
  flex-shrink: 0;
}

@keyframes slideInfinite {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(calc(-100% - 4rem));
  }
}

/* RTL sliding animation */
@keyframes slideInfiniteRTL {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(calc(100% + 4rem));
  }
}

/* RTL sliding track animation */
[dir="rtl"] .sliding-track {
  animation: slideInfiniteRTL 30s linear infinite;
}

/* RTL sliding item adjustments for Arabic text */
[dir="rtl"] .sliding-item {
  min-width: 280px;
  padding: 0 1.5rem;
}

/* Pause animation on hover */
.sliding-container:hover .sliding-track {
  animation-play-state: paused;
}

/* Responsive adjustments */
@media (max-width: 640px) {
  .sliding-track {
    animation-duration: 35s;
    gap: 3rem;
  }

  /* RTL responsive */
  [dir="rtl"] .sliding-track {
    animation: slideInfiniteRTL 35s linear infinite;
    gap: 3rem;
  }

  /* Our Story section mobile improvements */
  .bg-gradient-to-r.from-slate-50.to-lime-50 {
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
  }

  .bg-gradient-to-r.from-slate-50.to-lime-50 h3 {
    font-size: 1.5rem !important;
    line-height: 2rem !important;
  }

  .bg-gradient-to-r.from-slate-50.to-lime-50 p {
    font-size: 0.875rem !important;
    line-height: 1.5rem !important;
  }
}

@media (min-width: 641px) and (max-width: 1024px) {
  .sliding-track {
    animation-duration: 32s;
    gap: 3.5rem;
  }

  /* RTL responsive */
  [dir="rtl"] .sliding-track {
    animation: slideInfiniteRTL 32s linear infinite;
    gap: 3.5rem;
  }

  /* Our Story section tablet improvements */
  .bg-gradient-to-r.from-slate-50.to-lime-50 h3 {
    font-size: 2rem !important;
    line-height: 2.5rem !important;
  }

  .bg-gradient-to-r.from-slate-50.to-lime-50 p {
    font-size: 1rem !important;
    line-height: 1.75rem !important;
  }
}

/* Responsive typography */
@media (max-width: 640px) {
  h1 {
    font-size: 2.25rem;
  }

  h2 {
    font-size: 1.875rem;
  }

  h3 {
    font-size: 1.5rem;
  }

  .text-4xl {
    font-size: 2rem;
  }

  .text-6xl {
    font-size: 3rem;
  }
}

@media (min-width: 641px) and (max-width: 1024px) {
  h1 {
    font-size: 3rem;
  }

  h2 {
    font-size: 2.25rem;
  }

  h3 {
    font-size: 1.875rem;
  }
}

/* Loading states */
.loading {
  opacity: 0;
  animation: fadeInUp 0.5s ease-in-out forwards;
}

/* Hero background effects */
.hero-bg-blur {
  filter: blur(150px);
  opacity: 0.3;
}

/* Image hover effects */
img {
  transition: transform 0.3s ease;
}

img:hover {
  transform: scale(1.02);
}

/* Focus styles for accessibility */

input:focus {
  outline: 2px solid var(--brand-green);
  outline-offset: 2px;
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
  }
}

/* Arabic RTL Styles */
.font-arabic {
  font-family: "IBM Plex Sans Arabic", Arial, sans-serif;
}

.rtl {
  direction: rtl;
  text-align: right;
}

/* RTL specific spacing fixes */
[dir="rtl"] .space-x-2 > * + * {
  margin-right: 0.5rem;
  margin-left: 0;
}

[dir="rtl"] .space-x-3 > * + * {
  margin-right: 0.75rem;
  margin-left: 0;
}

[dir="rtl"] .space-x-4 > * + * {
  margin-right: 1rem;
  margin-left: 0;
}

[dir="rtl"] .space-x-6 > * + * {
  margin-right: 1.5rem;
  margin-left: 0;
}

[dir="rtl"] .space-x-8 > * + * {
  margin-right: 2rem;
  margin-left: 0;
}

/* RTL flex direction helpers */
.rtl-flex-reverse {
  flex-direction: row-reverse;
}

/* RTL text alignment */
.rtl-text-right {
  text-align: right;
}

/* RTL positioning adjustments */
[dir="rtl"] .text-left {
  text-align: right;
}

[dir="rtl"] .text-right {
  text-align: right;
}

/* RTL button positioning */
[dir="rtl"] .absolute.right-2 {
  left: 0.5rem;
  right: auto;
}

[dir="rtl"] .absolute.left-2 {
  right: 0.5rem;
  left: auto;
}

/* RTL mobile menu positioning */
[dir="rtl"] .translate-x-full {
  transform: translateX(-100%);
}

[dir="rtl"] .-translate-x-full {
  transform: translateX(100%);
}

/* Mobile menu for RTL */
[dir="rtl"] #mobile-menu {
  background: linear-gradient(135deg, #000000 0%, #1a1a1a 50%, #000000 100%);
}

[dir="rtl"] #mobile-menu.transform.translate-x-full {
  transform: translateX(-100%);
}

[dir="rtl"] #mobile-menu:not(.transform) {
  transform: translateX(0);
}

/* RTL responsive padding adjustments */
@media (max-width: 640px) {
  [dir="rtl"] .px-4 {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  [dir="rtl"] .space-x-2 > * + * {
    margin-right: 0.375rem;
    margin-left: 0;
  }

  [dir="rtl"] .space-x-3 > * + * {
    margin-right: 0.5rem;
    margin-left: 0;
  }
}

/* Letter spacing classes */
.letter-spacing-wide {
  letter-spacing: 1px;
}

.letter-spacing-wider {
  letter-spacing: 1px;
  line-height: 1.6;
}

/* Icon height utility */
.icon-currency {
  height: 1.2em;
}
