@import url('https://fonts.googleapis.com/css2?family=Alexandria:wght@100..900&display=swap');
/* @tailwind base; */
/* @tailwind components; */
/* @tailwind utilities; */

/* Prevent horizontal scroll globally */
html, body {
  overflow-x: hidden !important;
  width: 100vw;
  box-sizing: border-box;
}

*, *::before, *::after {
  box-sizing: inherit;
}
 

/* Prevent fixed/absolute elements from overflowing on mobile */
@media (max-width: 1024px) {
  #mobileMenu,
  #menuOverlay {
    max-width: 100vw;
    overflow-x: hidden;
    right: 0;
    left: auto;
  }
}

/* Fix for images and grids */
img, svg, video {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Remove negative margins that may cause overflow */
[class*="-mt-"] {
  margin-top: 0 !important;
}

/* RTL Testimonials Carousel Styles */
.testimonials-section {
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.testimonial-card {
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.testimonial-card.active {
  opacity: 1;
  transform: scale(1);
  z-index: 3;
}

.testimonial-card.next {
  opacity: 0.8;
  transform: scale(0.8);
  z-index: 2;
}

.testimonial-card.further {
  opacity: 0.6;
  transform: scale(0.6);
  z-index: 1;
}

.testimonial-card.hidden {
  opacity: 0;
  transform: scale(0.4);
  z-index: 0;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

.float-animation {
  animation: float 3s ease-in-out infinite;
}

.float-animation:nth-child(2) {
  animation-delay: 0.5s;
}

.float-animation:nth-child(3) {
  animation-delay: 1s;
}

.content-fade-in {
  animation: fadeInUp 0.5s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.nav-btn {
  border-radius: 8px;
  transition: all 0.3s ease;
}

.nav-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(36, 88, 167, 0.3);
}

.star-rating {
  display: flex;
  flex-direction: row;
  gap: 4px;
}

/* Testimonial Images Row */
.testimonial-images-row {
  display: flex;
  gap: 1rem;
  justify-content: center;
  align-items: center;
  padding: 1rem;
}

.testimonial-image-wrapper {
  position: relative;
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  overflow: hidden;
  border-radius: 0.75rem;
}

.testimonial-image-wrapper img {
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
  border-radius: 0.75rem;
  filter: brightness(0.95);
}

.testimonial-image-wrapper:hover img {
  box-shadow: 0 25px 50px rgba(36, 88, 167, 0.4);
  transform: translateY(-8px) scale(1.02);
  filter: brightness(1);
}

/* Image overlay styles */
.image-overlay {
  position: absolute;
  bottom: 0.75rem;
  left: 0.75rem;
  right: 0.75rem;
  background: rgba(255, 255, 255, 0.95);
  padding: 0.75rem;
  border-radius: 0.5rem;
  backdrop-filter: blur(15px);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  transform: translateY(10px);
  opacity: 0;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.testimonial-image-wrapper:hover .image-overlay {
  background: rgba(255, 255, 255, 1);
  transform: translateY(0);
  opacity: 1;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

/* Fade effects for different image states */
.testimonial-image-wrapper.active {
  animation: pulseActive 2s ease-in-out infinite;
}

.testimonial-image-wrapper.active img {
  opacity: 1;
  transform: scale(1);
  filter: brightness(1);
  box-shadow: 0 20px 40px rgba(36, 88, 167, 0.3);
}

.testimonial-image-wrapper.active .image-overlay {
  opacity: 1;
  transform: translateY(0);
  background: rgba(255, 255, 255, 1);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.testimonial-image-wrapper.next img {
  opacity: 0.85;
  transform: scale(0.85);
  filter: brightness(0.9);
}

.testimonial-image-wrapper.further img {
  opacity: 0.65;
  transform: scale(0.7);
  filter: brightness(0.8);
}

@keyframes pulseActive {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.02);
  }
}

/* Content Animations */
.testimonial-content {
  animation: fadeInLeft 0.8s ease-out;
}

.testimonial-title {
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

.testimonial-rating {
  animation: fadeInUp 0.8s ease-out 0.4s both;
}

.testimonial-text {
  animation: fadeInUp 0.8s ease-out 0.6s both;
}

.testimonial-customer-info {
  animation: fadeInUp 0.8s ease-out 0.8s both;
}

.testimonial-nav {
  animation: fadeInUp 0.8s ease-out 1s both;
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.embla__dot {
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
  background-color: #d1d5db;
  border: none;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.embla__dot::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: #2458A7;
  border-radius: 50%;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  transform: translate(-50%, -50%);
}

.embla__dot:hover::before {
  width: 100%;
  height: 100%;
}

.embla__dot:hover {
  transform: scale(1.3);
  box-shadow: 0 4px 15px rgba(36, 88, 167, 0.3);
}

.embla__dot.bg-primary-blue {
  background-color: #2458A7;
  transform: scale(1.4);
  box-shadow: 0 6px 20px rgba(36, 88, 167, 0.4);
}

/* Navigation Buttons */
.testimonial-nav .nav-btn {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 15px rgba(36, 88, 167, 0.2);
  position: relative;
  overflow: hidden;
}

.testimonial-nav .nav-btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  transform: translate(-50%, -50%);
}

.testimonial-nav .nav-btn:hover::before {
  width: 200%;
  height: 200%;
}

.testimonial-nav .nav-btn:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 12px 30px rgba(36, 88, 167, 0.4);
}

.testimonial-nav .nav-btn:active {
  transform: translateY(-1px) scale(1.02);
}

/* Star Rating Animation */
.testimonial-rating i {
  animation: starTwinkle 2s ease-in-out infinite;
  animation-delay: calc(var(--star-index, 0) * 0.2s);
}

@keyframes starTwinkle {
  0%, 100% {
    transform: scale(1);
    filter: brightness(1);
  }
  50% {
    transform: scale(1.1);
    filter: brightness(1.2);
  }
}

/* Responsive Design */

/* Large Desktop (1440px+) */
@media (min-width: 1440px) {
  .testimonial-images-row {
    gap: 1.5rem;
    padding: 1.5rem;
  }

  .testimonial-image-wrapper.active img {
    width: 220px;
    height: 300px;
  }

  .testimonial-image-wrapper.next img {
    width: 176px;
    height: 240px;
  }

  .testimonial-image-wrapper.further img {
    width: 132px;
    height: 180px;
  }
}

/* Desktop (1024px - 1439px) */
@media (max-width: 1439px) and (min-width: 1024px) {
  .testimonial-images-row {
    gap: 1.25rem;
    padding: 1.25rem;
  }

  .testimonial-image-wrapper.active img {
    width: 200px;
    height: 280px;
  }

  .testimonial-image-wrapper.next img {
    width: 160px;
    height: 224px;
  }

  .testimonial-image-wrapper.further img {
    width: 120px;
    height: 168px;
  }
}

/* Tablet (768px - 1023px) */
@media (max-width: 1023px) and (min-width: 768px) {
  .testimonials-section {
    padding: 2rem 1rem;
  }

  .testimonial-images-row {
    gap: 1rem;
    height: 280px;
    padding: 1rem;
  }

  .testimonial-image-wrapper.active img {
    width: 160px;
    height: 220px;
  }

  .testimonial-image-wrapper.next img {
    width: 128px;
    height: 176px;
  }

  .testimonial-image-wrapper.further img {
    width: 96px;
    height: 132px;
  }

  .testimonial-title {
    font-size: 1.75rem;
  }

  .testimonial-text p {
    font-size: 1rem;
  }
}

/* Mobile Large (640px - 767px) */
@media (max-width: 767px) and (min-width: 640px) {
  .testimonials-section {
    padding: 1.5rem 0.75rem;
  }

  .testimonial-images-row {
    gap: 0.75rem;
    height: 240px;
    padding: 0.75rem;
  }

  .testimonial-image-wrapper.active img {
    width: 140px;
    height: 200px;
  }

  .testimonial-image-wrapper.next img {
    width: 112px;
    height: 160px;
  }

  .testimonial-image-wrapper.further img {
    width: 84px;
    height: 120px;
  }

  .testimonial-title {
    font-size: 1.5rem;
    line-height: 1.3;
  }

  .testimonial-text p {
    font-size: 0.95rem;
    line-height: 1.6;
  }

  .embla__dot {
    width: 0.625rem;
    height: 0.625rem;
  }

  .image-overlay {
    padding: 0.5rem;
    bottom: 0.5rem;
    left: 0.5rem;
    right: 0.5rem;
  }

  .image-overlay p {
    font-size: 0.8rem;
  }
}

/* Mobile Medium (480px - 639px) */
@media (max-width: 639px) and (min-width: 480px) {
  .testimonials-section {
    padding: 1.25rem 0.5rem;
  }

  .testimonial-images-row {
    gap: 0.5rem;
    height: 200px;
    padding: 0.5rem;
  }

  .testimonial-image-wrapper.active img {
    width: 120px;
    height: 170px;
  }

  .testimonial-image-wrapper.next img {
    width: 96px;
    height: 136px;
  }

  .testimonial-image-wrapper.further img {
    width: 72px;
    height: 102px;
  }

  .testimonial-title {
    font-size: 1.375rem;
    line-height: 1.25;
  }

  .testimonial-text p {
    font-size: 0.9rem;
    line-height: 1.5;
  }

  .testimonial-nav .nav-btn {
    width: 2.25rem;
    height: 2.25rem;
  }

  .embla__dot {
    width: 0.5rem;
    height: 0.5rem;
  }

  .image-overlay {
    padding: 0.375rem;
    bottom: 0.375rem;
    left: 0.375rem;
    right: 0.375rem;
  }

  .image-overlay p {
    font-size: 0.75rem;
  }
}

/* Mobile Small (320px - 479px) */
@media (max-width: 479px) {
  .testimonials-section {
    padding: 1rem 0.25rem;
  }

  .testimonial-images-row {
    gap: 0.375rem;
    height: 180px;
    padding: 0.375rem;
    flex-direction: row;
    justify-content: space-around;
  }

  .testimonial-image-wrapper.active img {
    width: 100px;
    height: 140px;
  }

  .testimonial-image-wrapper.next img {
    width: 80px;
    height: 112px;
  }

  .testimonial-image-wrapper.further img {
    width: 60px;
    height: 84px;
  }

  .testimonial-title {
    font-size: 1.25rem;
    line-height: 1.2;
    margin-bottom: 0.75rem;
  }

  .testimonial-text p {
    font-size: 0.85rem;
    line-height: 1.4;
  }

  .testimonial-nav .nav-btn {
    width: 2rem;
    height: 2rem;
    font-size: 0.75rem;
  }

  .embla__dot {
    width: 0.375rem;
    height: 0.375rem;
  }

  .image-overlay {
    display: none; /* Hide overlays on very small screens */
  }

  /* Stack content vertically on very small screens */
  .grid.grid-cols-1.lg\\:grid-cols-2 {
    gap: 1rem;
  }

  .testimonial-content {
    order: 2;
    text-align: center;
  }

  .testimonial-carousel {
    order: 1;
  }
}

/* Animation Performance Optimizations */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

 

/* Templates Section Styles */
.template-tab {
  position: relative;
  cursor: pointer;
}

.template-tab.active {
  color: #2458A7;
  border-bottom-color: #F4B942;
}

.template-tab:hover:not(.active) {
  color: #2458A7;
  border-bottom-color: #F4B942;
}

.template-card {
  cursor: pointer;
}

.template-image {
  overflow: hidden;
}



.btn-preview,
.btn-purchase {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.btn-preview:hover {
  background-color: #e5e7eb;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.btn-purchase:hover {
  background-color: #1d4ed8;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(36, 88, 167, 0.3);
}

.view-all-btn {
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(36, 88, 167, 0.2);
}

.view-all-btn:hover {
  background-color: #1d4ed8;
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 25px rgba(36, 88, 167, 0.3);
}

/* Responsive adjustments for templates */
@media (max-width: 768px) {
  .template-card {
    margin-bottom: 1.5rem;
  }

  .template-tech {
    gap: 0.5rem;
  }

  .tech-tag {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
  }

  .template-actions {
    flex-direction: column;
    gap: 0.75rem;
  }

  .btn-preview,
  .btn-purchase {
    width: 100%;
    text-align: center;
  }
}

* {
  font-family: "Alexandria", sans-serif;
  line-height: 2;
}

/* Custom AOS animations */
[data-aos="fade-in-rotate-x"] {
  opacity: 0;
  transform: rotateX(180deg);
  transition-property: opacity, transform;
}

[data-aos="fade-in-rotate-x"].aos-animate {
  opacity: 1;
  transform: rotateX(0deg);
}

/* Floating animations that combine with scale animations */
@keyframes float-hand-1 {
  0%, 30% {
    transform: translate(0px, 0px) scale(1);
  }
  25% {
    transform: translate(15px, -10px) scale(1.2);
  }
  50% {
    transform: translate(-10px, -20px) scale(1.8);
  }
  70% {
    transform: translate(-15px, 10px) scale(1.2);
  }
  100% {
    transform: translate(0px, 0px) scale(1);
  }
}

@keyframes float-winning-2 {
  0%, 30% {
    transform: translate(0px, 0px) scale(1);
  }
  25% {
    transform: translate(-12px, 15px) scale(1.2);
  }
  50% {
    transform: translate(18px, -8px) scale(1.8);
  }
  70% {
    transform: translate(8px, -18px) scale(1.2);
  }
  100% {
    transform: translate(0px, 0px) scale(1);
  }
}

@keyframes float-hand-3 {
  0%, 30% {
    transform: translate(0px, 0px) scale(1);
  }
  25% {
    transform: translate(10px, 12px) scale(1.2);
  }
  50% {
    transform: translate(-15px, 5px) scale(1.8);
  }
  70% {
    transform: translate(12px, -15px) scale(1.2);
  }
  100% {
    transform: translate(0px, 0px) scale(1);
  }
}

@keyframes float-winning-4 {
  0%, 30% {
    transform: translate(0px, 0px) scale(1);
  }
  25% {
    transform: translate(-8px, -12px) scale(1.2);
  }
  50% {
    transform: translate(14px, 10px) scale(1.8);
  }
  70% {
    transform: translate(-10px, 8px) scale(1.2);
  }
  100% {
    transform: translate(0px, 0px) scale(1);
  }
}

.float-hand-1 {
  animation: float-hand-1 6s ease-in-out infinite;
}

.float-winning-2 {
  animation: float-winning-2 7s ease-in-out infinite;
}

.float-hand-3 {
  animation: float-hand-3 8s ease-in-out infinite;
}

.float-winning-4 {
  animation: float-winning-4 5s ease-in-out infinite;
}

/* Simple floating animations for flying icons */
@keyframes simple-float-1 {
  0%, 100% {
    transform: translate(0px, 0px);
  }
  25% {
    transform: translate(15px, -10px);
  }
  50% {
    transform: translate(-10px, -20px);
  }
  75% {
    transform: translate(-15px, 10px);
  }
}

@keyframes simple-float-2 {
  0%, 100% {
    transform: translate(0px, 0px);
  }
  25% {
    transform: translate(-12px, 15px);
  }
  50% {
    transform: translate(18px, -8px);
  }
  75% {
    transform: translate(8px, -18px);
  }
}

@keyframes simple-float-3 {
  0%, 100% {
    transform: translate(0px, 0px);
  }
  25% {
    transform: translate(10px, 12px);
  }
  50% {
    transform: translate(-15px, 5px);
  }
  75% {
    transform: translate(12px, -15px);
  }
}

@keyframes simple-float-4 {
  0%, 100% {
    transform: translate(0px, 0px);
  }
  25% {
    transform: translate(-8px, -12px);
  }
  50% {
    transform: translate(14px, 10px);
  }
  75% {
    transform: translate(-10px, 8px);
  }
}

.float-1 {
  animation: simple-float-1 6s ease-in-out infinite;
}

.float-2 {
  animation: simple-float-2 7s ease-in-out infinite;
}

.float-3 {
  animation: simple-float-3 8s ease-in-out infinite;
}

.float-4 {
  animation: simple-float-4 5s ease-in-out infinite;
}

/* Disable floating animation for flying icons (programming-solution page) */
.floating-icon.float-1,
.floating-icon.float-2,
.floating-icon.float-3,
.floating-icon.float-4 {
  animation: none !important;
}

/* Blur effect for smooth image transitions */
.blur-out {
  filter: blur(15px);
  opacity: 0.2;
  transition: filter 1.5s ease-in-out, opacity 1.5s ease-in-out;
}

/* Grid images cropping effect - show only portions like background-size: 400% 300% */
/* .grid-item img {
  width: 400% !important;
  height: 300% !important;
  object-fit: cover;
} */

 

.container.h-\[945px\]::-webkit-scrollbar {
  display: none; /* Chrome, Safari and Opera */
}

/* Responsive scroll works card sizing */
.scroll-work-card {
  transition: all 0.3s ease;
}

.scroll-work-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* Mobile screens */
/* @media (max-width: 640px) {
  .scroll-work-card {
    width: 85% !important;
    height: 400px !important;
    left: 7.5% !important;
  }
} */

/* Tablet screens */
/* @media (min-width: 641px) and (max-width: 1024px) {
  .scroll-work-card {
    width: 75% !important;
    height: 450px !important;
    left: 12.5% !important;
  }
} */

/* Desktop screens */
/* @media (min-width: 1025px) {
  .scroll-work-card {
    width: 45% !important;
    height: 500px !important;
  }

  .scroll-work-card[data-side="left"] {
    left: 5% !important;
  }

  .scroll-work-card[data-side="right"] {
    left: 50% !important;
  }
} */

/* Remove box shadow from hosting cards */
.hosting-card {
  box-shadow: none !important;
}

      .piece {
        background-image: url("./public/pages/home-page/our-services/website-1.webp");
        background-size: 800px 738px;
        background-repeat: no-repeat;
      }



/* the laptop overlay class */
.laptop-screen-overlay {
  position: absolute;
  top: 8%;
  left: 24%;
  width: 62%;
  height: 75%;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.2);
}

/* for webhosting page the cables of the server */
 /* default “blue” stroke on the cable */
.cable-line {
  stroke: #4B88C5;  /* your original blue */
  transition: stroke 0.3s;
}

/* when “active”—after the first click—switch to orange */
.cable-line.active {
  stroke: #de8545;
  fill: #de8545;
}


.shiny-blue {
  background: #ffffff;     /* dark canvas */
  color: #15205C;
  padding: 1rem;
  border-radius: 0.25rem;

  box-shadow:
    /* sharp white core */
    0 0 3px rgba(255,255,255,0.9),
    /* cyan ring */
    0 0 8px rgba(0,255,255,0.7),
    /* bright blue ring */
    0 0 16px rgba(0,150,255,0.6),
    /* deeper blue spread */
    0 0 32px rgba(0,100,255,0.4),
    /* soft outer haze */
    0 0 48px rgba(0,100,255,0.2);
}