/* Pol Online - Modern Persian RTL Website */
@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@100;200;300;400;500;600;700;800;900&display=swap');

:root {
  --brand-50: #eff6ff;
  --brand-100: #dbeafe;
  --brand-200: #bfdbfe;
  --brand-300: #93c5fd;
  --brand-400: #60a5fa;
  --brand-500: #3b82f6;
  --brand-600: #2563eb;
  --brand-700: #1d4ed8;
  --brand-800: #1e40af;
  --brand-900: #1e3a8a;
}
/* Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-family: 'Vazirmatn', system-ui, -apple-system, sans-serif;
}

body {
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* RTL Layout */
[dir="rtl"] {
  text-align: right;
}
/* Custom Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

/* Stronger, smoother float for decorative bubbles */
@keyframes floatStrong {
  0%, 100% {
    transform: translateY(0) translateX(0) scale(1);
  }
  50% {
    transform: translateY(-24px) translateX(6px) scale(1.08);
  }
}

.animate-float-strong {
  animation: floatStrong 3.6s ease-in-out infinite;
}

.animate-float-strong-delayed {
  animation: floatStrong 4.2s ease-in-out infinite;
  animation-delay: 0.8s;
}

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

.animate-slide-in-right {
  animation: slideInRight 0.6s ease-out forwards;
}

/* Hero Section */
.hero-slide {
  transition: opacity 1s ease-in-out;
}

/* Service Cards */
.service-card {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover {
  transform: translateY(-8px) scale(1.02);
}

/* Tab Panels */
.tab-panel {
  transition: all 0.3s ease;
}
/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: #f8fafc;
}

::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Focus States */
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
a:focus-visible {
  outline: 2px solid var(--brand-500);
  outline-offset: 2px;
  border-radius: 0.375rem;
}

/* Mobile Responsive */
@media (max-width: 992px) {
  /* Ensure comfortable height and spacing */
  html {
    scroll-padding-top: 6.5rem; /* prevent anchor targets from hiding under fixed header */
  }
  #home {
    min-height: auto;
    padding-top: 6.5rem; /* extra space under fixed nav to avoid overlap */
  }
}

/* Default (>= 992px) safe scroll offset for anchors */
@media (min-width: 993px) {
  html { scroll-padding-top: 5.5rem; }
}

@media (max-width: 640px) {
  .hero-slide h1 {
    font-size: 2rem;
    line-height: 1.2;
  }
  
  .hero-slide p {
    font-size: 1rem;
  }
}

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

/* Print Styles */
@media print {
  .no-print,
  nav,
  footer {
    display: none !important;
  }
  
  body {
    font-size: 12pt;
    line-height: 1.4;
  }
}
