/*!**************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/.pnpm/next@14.2.0_@babel+core@7.28.0_react-dom@18.2.0_react@18.2.0__react@18.2.0/node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[13].oneOf[12].use[2]!./node_modules/.pnpm/next@14.2.0_@babel+core@7.28.0_react-dom@18.2.0_react@18.2.0__react@18.2.0/node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[13].oneOf[12].use[3]!./src/styles/index.css ***!
  \**************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600&family=Open+Sans:wght@400;600&family=Inter:wght@600&family=Outfit:wght@600&display=swap');

html {
  overflow-x: hidden;
  width: 100%;
}

body {
  font-family: 'Poppins', 'Open Sans', 'Inter', 'Outfit', sans-serif;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  overflow-x: hidden;
  width: 100%;
}

*, *::before, *::after {
  box-sizing: inherit;
}

/* Email input border with placeholder color */
.email-input-container {
  border-color: #58588f !important; /* همان رنگ placeholder */
}

/* Custom Swiper Styles */
.portfolio-swiper {
  padding: 20px 0;
}

.portfolio-swiper .swiper-slide {
  height: auto;
}

.portfolio-swiper .swiper-pagination {
  bottom: -40px;
}

.portfolio-swiper .swiper-pagination-bullet {
  background: #c3a3ff;
  opacity: 0.5;
  width: 12px;
  height: 12px;
}

.portfolio-swiper .swiper-pagination-bullet-active {
  opacity: 1;
  background: #c3a3ff;
}

/* Testimonials Slider Styles */
.testimonials-swiper {
  padding: 20px 0;
}

.testimonials-swiper .swiper-slide {
  height: auto;
  transition: all 0.3s ease;
}

.testimonials-swiper .swiper-slide:hover {
  transform: translateY(-5px);
}

.testimonials-swiper .swiper-pagination {
  display: none;
}

/* Custom Navigation Buttons */
.swiper-button-prev,
.swiper-button-next {
  background: rgba(195, 163, 255, 0.9) !important;
  width: 48px !important;
  height: 48px !important;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.swiper-button-prev:hover,
.swiper-button-next:hover {
  background: rgba(195, 163, 255, 1) !important;
  transform: scale(1.1);
}

.swiper-button-prev::after,
.swiper-button-next::after {
  font-size: 18px !important;
  color: white;
  font-weight: bold;
}

/* Hero Section Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-content {
  animation: fadeInUp 1s ease-out;
}

/* Service Cards Hover Effects */
.service-card {
  transition: all 0.3s ease;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(195, 163, 255, 0.2);
}

/* Gradient Text */
.gradient-text {
  background: linear-gradient(135deg, #c3a3ff 0%, #6d5697 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Testimonial Card Animations */
@keyframes slideInFromRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

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

.testimonials-swiper .swiper-slide-active {
  animation: slideInFromRight 0.6s ease-out;
}

.testimonials-swiper .swiper-slide-prev {
  animation: slideInFromLeft 0.6s ease-out;
}

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

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

::-webkit-scrollbar-thumb {
  background: #c3a3ff;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #6d5697;
}

/* Responsive adjustments for testimonials */
@media (max-width: 768px) {
  .testimonials-swiper .swiper-slide {
    padding: 0 10px;
  }
  
  .testimonials-swiper .swiper-slide-active {
    animation: slideInFromRight 0.4s ease-out;
  }
  
  .testimonials-swiper .swiper-slide-prev {
    animation: slideInFromLeft 0.4s ease-out;
  }
}

/* Wheel Loader Animations */
@keyframes rolling {
  to {
    transform: rotate(-360deg);
  }
}

@keyframes road-move {
  from {
    transform: translateX(-140%);
  }

  to {
    transform: translateX(100%);
  }
}

/* Twinkling Stars Animation */
@keyframes twinkle {
  0%, 100% {
    opacity: 0;
    transform: scale(0.7);
  }
  50% {
    opacity: 1;
    transform: scale(1.3);
  }
}

@keyframes twinkle-small {
  0%, 100% {
    opacity: 0;
    transform: scale(0.5);
  }
  50% {
    opacity: 1;
    transform: scale(1.2);
  }
}

@keyframes twinkle-medium {
  0%, 100% {
    opacity: 0;
    transform: scale(0.6);
  }
  50% {
    opacity: 1;
    transform: scale(1.4);
  }
}

@keyframes twinkle-large {
  0%, 100% {
    opacity: 0;
    transform: scale(0.4);
  }
  50% {
    opacity: 1;
    transform: scale(1.5);
  }
}

.animate-twinkle {
  animation: twinkle ease-in-out infinite;
}

.animate-twinkle-small {
  animation: twinkle-small ease-in-out infinite;
}

.animate-twinkle-medium {
  animation: twinkle-medium ease-in-out infinite;
}

.animate-twinkle-large {
  animation: twinkle-large ease-in-out infinite;
}

.wheel {
  animation: rolling 1s linear infinite;
}

.road {
  animation: road-move 2s linear infinite;
}

/* Additional Mobile Responsive Improvements */
@media (max-width: 640px) {
  /* Improve touch targets on mobile */
  button, a {
    min-height: 44px;
    min-width: 44px;
  }
  
  /* Better spacing for mobile */
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
  /* Improve form elements on mobile */
  input, textarea, select {
    font-size: 16px !important; /* Prevents zoom on iOS */
  }
  
  /* Better mobile navigation */
  .mobile-menu {
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
  }
  
  /* Improve card layouts on mobile */
  .project-card {
    margin-bottom: 1rem;
  }
  
  /* Better mobile typography */
  h1 {
    font-size: 1.875rem !important;
    line-height: 2.25rem !important;
  }
  
  h2 {
    font-size: 1.5rem !important;
    line-height: 2rem !important;
  }
  
  h3 {
    font-size: 1.25rem !important;
    line-height: 1.75rem !important;
  }
  
  /* Prevent horizontal overflow on mobile */
  .container, .max-w-7xl, .max-w-6xl, .max-w-5xl, .max-w-4xl, .max-w-3xl, .max-w-2xl, .max-w-xl, .max-w-lg, .max-w-md, .max-w-sm {
    max-width: 100vw !important;
    overflow-x: hidden !important;
  }
  
  /* Ensure proper padding on mobile */
  .px-4, .px-6, .px-8 {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
}

/* Tablet responsive improvements */
@media (min-width: 641px) and (max-width: 1024px) {
  .container {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
  
  /* Better grid layouts for tablets */
  .grid-cols-1 {
    grid-template-columns: repeat(1, minmax(0, 1fr));
  }
  
  .grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Desktop responsive improvements */
@media (min-width: 1025px) {
  .container {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

/* High DPI display improvements */
@media (min-resolution: 192dpi) {
  .hero-image {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
  /* Additional dark mode styles if needed */
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  .hero-content {
    animation: none;
  }
  
  .testimonials-swiper .swiper-slide-active,
  .testimonials-swiper .swiper-slide-prev {
    animation: none;
  }
}

/* Focus styles for accessibility */
button:focus,
a:focus,
input:focus,
textarea:focus,
select:focus {
  outline: 2px solid #c3a3ff;
  outline-offset: 2px;
}

/* Loading states */
.loading {
  opacity: 0.6;
  pointer-events: none;
}

.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid #c3a3ff;
  border-top: 2px solid transparent;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Portfolio scrolling animation */
@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-100%);
  }
}

.animate-scroll {
  animation: scroll 30s linear infinite;
}

.animate-scroll:hover {
  animation-play-state: paused;
}

/* Video Player Custom Styles */
.slider {
  background: transparent;
  z-index: 10001;
}

.slider::-webkit-slider-thumb {
  -webkit-appearance: none;
          appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #c3a3ff;
  cursor: pointer;
  border: none;
  z-index: 10002;
}

.slider::-webkit-slider-track {
  background: rgba(255, 255, 255, 0.3);
  border-radius: 4px;
  height: 4px;
}

.slider::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #c3a3ff;
  cursor: pointer;
  border: none;
  z-index: 10002;
}

.slider::-moz-range-track {
  background: rgba(255, 255, 255, 0.3);
  border-radius: 4px;
  height: 4px;
}

/* Fullscreen video controls enhancement */
video:fullscreen {
  -o-object-fit: contain;
     object-fit: contain;
}

video:fullscreen::-webkit-media-controls {
  display: none !important;
}

video:fullscreen::-webkit-media-controls-panel {
  display: none !important;
}

/* Ensure our custom controls are always visible in fullscreen */
.video-player-fullscreen {
  position: relative;
}

.video-player-fullscreen .video-controls {
  z-index: 2147483647 !important;
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  pointer-events: auto !important;
  background: linear-gradient(transparent 0%, transparent 60%, rgba(0, 0, 0, 0.8) 100%) !important;
}

.video-player-fullscreen .video-controls .absolute {
  position: fixed !important;
  z-index: 2147483647 !important;
}

/* Force controls to be visible in fullscreen */
.video-player-fullscreen .video-controls.opacity-0 {
  opacity: 1 !important;
}

/* Ensure buttons are clickable in fullscreen */
.video-player-fullscreen button {
  z-index: 2147483647 !important;
  position: relative !important;
}

/* Ensure slider is visible and clickable */
.video-player-fullscreen .slider {
  z-index: 2147483647 !important;
  position: relative !important;
}

/* Additional fullscreen controls visibility */
.video-player-fullscreen * {
  pointer-events: auto !important;
}

.video-player-fullscreen .video-controls * {
  pointer-events: auto !important;
}

/* Force visibility for all control elements in fullscreen */
.video-player-fullscreen .video-controls,
.video-player-fullscreen .video-controls *,
.video-player-fullscreen button,
.video-player-fullscreen input,
.video-player-fullscreen .slider {
  visibility: visible !important;
  opacity: 1 !important;
  display: block !important;
}

/* Ensure proper stacking context */
.video-player-fullscreen {
  isolation: isolate;
}

/* Override any browser default fullscreen styles */
:fullscreen .video-controls,
:-webkit-full-screen .video-controls,
:-moz-full-screen .video-controls {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  z-index: 2147483647 !important;
}
