/* Custom CSS for PolyTask website */

/* Import modern fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&display=swap');

/* Apply custom styles */
body {
  font-family: 'Inter', 'SF Pro Display', 'Helvetica Neue', Arial, sans-serif;
  color: #2d3748;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'SF Pro Display', 'Helvetica Neue', Arial, sans-serif;
  font-weight: 600;
  color: #3c1f8a;
}

/* Ensure text is visible against backgrounds */
.text-tech-gray {
  color: #2d3748 !important;
}

/* Make sure purple elements stand out */
.text-polytask-purple {
  color: #5e35b1 !important;
}

.text-polytask-dark {
  color: #3c1f8a !important;
}

/* Add some modern styling touches */
.btn {
  font-weight: 500;
  padding: 0.75rem 1.5rem;
  border-radius: 0.375rem;
  transition: all 0.2s ease-in-out;
}

.btn-primary {
  background-color: #5e35b1;
  color: white;
}

.btn-primary:hover {
  background-color: #3c1f8a;
  transform: translateY(-2px);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* CTA Button styling */
.cta-button {
  background-color: #5e35b1;
  color: white;
  font-weight: 500;
  padding: 0.75rem 1.75rem;
  border-radius: 0.375rem;
  transition: all 0.2s ease-in-out;
  text-decoration: none;
  font-size: 1.125rem;
  box-shadow: 0 4px 6px rgba(94, 53, 177, 0.2);
}

.cta-button:hover {
  background-color: #3c1f8a;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(94, 53, 177, 0.3);
}

/* Modern card styling */
.card {
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05), 0 10px 15px rgba(0, 0, 0, 0.03);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1), 0 20px 25px rgba(0, 0, 0, 0.05);
}

/* Screenshot Carousel Styling */
.screenshot-carousel {
  padding: 60px 0;
  position: relative;
  max-width: 1400px;
  margin: 0 auto;
}

.screenshot-carousel .swiper-slide {
  width: 700px;
  height: auto;
  transition: all 0.3s ease;
  opacity: 0.85;
  border-radius: 12px;
  overflow: hidden;
}

.screenshot-carousel .swiper-slide .relative {
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.screenshot-carousel .swiper-slide-active {
  opacity: 1;
  transform: scale(1.05);
  z-index: 2;
}

.screenshot-carousel .swiper-slide-active .relative {
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

/* Custom navigation buttons */
.swiper-button-next,
.swiper-button-prev {
  color: #5e35b1 !important;
  background: rgba(255, 255, 255, 0.8);
  width: 60px !important;
  height: 60px !important;
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.swiper-button-next:after,
.swiper-button-prev:after {
  font-size: 24px !important;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
  background: white;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Custom pagination */
.swiper-pagination-bullet {
  width: 12px;
  height: 12px;
  background: #ccc;
  opacity: 0.6;
}

.swiper-pagination-bullet-active {
  background: #5e35b1;
  opacity: 1;
}

/* Modal Styles */
.screenshot-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.85);
  z-index: 1000;
  overflow: auto;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.screenshot-modal.active {
  display: flex;
  opacity: 1;
  justify-content: center;
  align-items: center;
}

.modal-content {
  position: relative;
  max-width: 95%;
  max-height: 95vh;
  margin: auto;
  display: block;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  border-radius: 4px;
  overflow: hidden;
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.screenshot-modal.active .modal-content {
  transform: scale(1);
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  color: white;
  font-size: 30px;
  font-weight: bold;
  cursor: pointer;
  z-index: 1001;
  width: 50px;
  height: 50px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.modal-close:hover {
  background: rgba(0, 0, 0, 0.6);
}

.modal-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 15px;
  text-align: center;
  font-size: 18px;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
  .screenshot-carousel .swiper-slide {
    width: 600px;
  }
}

@media (max-width: 1024px) {
  .screenshot-carousel .swiper-slide {
    width: 500px;
  }
}

@media (max-width: 768px) {
  .screenshot-carousel .swiper-slide {
    width: 400px;
  }
  
  .swiper-button-next,
  .swiper-button-prev {
    width: 50px !important;
    height: 50px !important;
  }
}

@media (max-width: 480px) {
  .screenshot-carousel .swiper-slide {
    width: 280px;
  }
  
  .modal-content {
    max-width: 95%;
  }
}

/* Customer Logo Cards */
.customer-card-wrapper {
  width: 220px;
  margin: 0 15px;
}

.customer-card {
  display: block;
  text-decoration: none;
  transition: all 0.3s ease;
  border-radius: 8px;
  text-align: center;
}

.customer-card:hover {
  transform: translateY(-5px);
}

.logo-container {
  width: 100%;
  height: 220px;
  background-color: white;
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 8px;
  padding: 10px;
  margin-bottom: 15px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.logo-container img {
  max-width: 160%;
  max-height: 160%;
  width: 55px;
  height: auto;
  margin-bottom: 15px;
}

.customer-card:hover .logo-container {
  border-color: rgba(94, 53, 177, 0.2);
  box-shadow: 0 10px 20px rgba(94, 53, 177, 0.1);
}

.customer-name {
  padding: 0 10px;
}

.customer-name p {
  color: #2d3748;
  font-weight: 500;
  font-size: 1.1rem;
  line-height: 1.4;
}

/* Responsive adjustments */
@media (max-width: 480px) {
  .customer-card-wrapper {
    width: 180px;
  }
  
  .logo-container {
    height: 150px;
  }
  
  .customer-name p {
    font-size: 1rem;
  }
}
