/* 
 * Modern Products Page Styling
 * Othala Solutions v2
 */

/* Hero Section Styles */
.products-hero {
  position: relative;
  padding: 8rem 0 6rem;
  background: linear-gradient(135deg, #e6f7ff 0%, #b3e0ff 100%);
  overflow: hidden;
  z-index: 1;
}

.products-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('/images/shapes/circuit-pattern.svg') repeat;
  opacity: 0.05;
  z-index: -1;
  animation: moveBackground 30s linear infinite;
}

@keyframes moveBackground {
  0% { background-position: 0 0; }
  100% { background-position: 1000px 1000px; }
}

.products-hero-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 2;
}

.products-badge {
  display: inline-flex;
  align-items: center;
  background: rgba(0, 71, 171, 0.1);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-full);
  padding: 0.5rem 1rem;
  margin-bottom: 1.5rem;
  font-weight: var(--font-weight-medium);
  font-size: var(--font-size-sm);
  box-shadow: 0 5px 15px rgba(0, 71, 171, 0.15);
  color: var(--color-primary-dark);
}

.products-badge i {
  margin-right: 0.5rem;
}

.products-hero h1 {
  font-size: var(--font-size-5xl);
  font-weight: var(--font-weight-bold);
  margin-bottom: 1.5rem;
  color: var(--color-primary-dark);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.products-hero h1 .highlight {
  position: relative;
  color: var(--color-primary);
}

.products-hero h1 .highlight::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: var(--color-primary);
  border-radius: var(--radius-full);
  opacity: 0.7;
}

.products-hero-description {
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-light);
  color: var(--color-gray-dark);
  max-width: 600px;
  margin: 0 auto;
}

/* Decorative elements */
.hero-shape {
  position: absolute;
  z-index: 0;
  opacity: 0.6;
}

.hero-shape-1 {
  top: 20%;
  left: 5%;
  width: 80px;
  height: 80px;
  background-color: var(--color-primary);
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  animation: float 10s ease-in-out infinite;
}

.hero-shape-2 {
  bottom: 15%;
  right: 10%;
  width: 60px;
  height: 60px;
  background-color: var(--color-secondary);
  border-radius: 50%;
  animation: float 12s ease-in-out infinite 2s;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(0, -20px); }
}

/* Products Section */
.products-section {
  position: relative;
  padding: 6rem 0;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 4rem;
}

.section-subheading {
  display: inline-block;
  text-transform: uppercase;
  font-weight: var(--font-weight-semibold);
  font-size: var(--font-size-xs);
  letter-spacing: 1.5px;
  color: var(--color-primary);
  margin-bottom: 1rem;
}

.section-heading {
  font-size: var(--font-size-3xl);
  margin-bottom: 1.5rem;
  font-weight: var(--font-weight-bold);
  color: var(--color-dark);
  line-height: 1.3;
}

.section-description {
  font-size: var(--font-size-lg);
  color: var(--color-gray);
  margin-bottom: 2rem;
  line-height: 1.6;
}

/* Filter Navigation */
.products-filter {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 3rem;
}

.filter-btn {
  padding: 0.75rem 1.25rem;
  background-color: transparent;
  border: 1px solid var(--color-gray-light);
  border-radius: var(--radius-lg);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  color: var(--color-gray-dark);
  cursor: pointer;
  transition: all 0.3s ease;
}

.filter-btn:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.filter-btn.active {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
  color: white;
}

/* Products Grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 2.5rem;
}

/* Product Card */
.product-card {
  border-radius: var(--radius-xl);
  background-color: white;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  transition: all 0.5s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 1;
}

.product-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.product-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(var(--color-primary-rgb), 0.05) 0%, rgba(var(--color-secondary-rgb), 0.05) 100%);
  z-index: -1;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.product-card:hover::before {
  opacity: 1;
}

.product-image {
  position: relative;
  overflow: hidden;
  height: 220px;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.product-card:hover .product-image img {
  transform: scale(1.05);
}

.product-category {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background-color: rgba(255, 255, 255, 0.85);
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-semibold);
  color: var(--color-primary);
  backdrop-filter: blur(5px);
}

.product-body {
  padding: 2rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.product-title {
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-bold);
  margin-bottom: 1rem;
  color: var(--color-dark);
  transition: color 0.3s ease;
}

.product-card:hover .product-title {
  color: var(--color-primary);
}

.product-description {
  font-size: var(--font-size-base);
  color: var(--color-gray);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

/* Features List */
.product-features {
  margin-top: auto;
  margin-bottom: 1.5rem;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 0.75rem;
}

.feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  background-color: rgba(var(--color-primary-rgb), 0.1);
  border-radius: 50%;
  margin-right: 0.75rem;
  flex-shrink: 0;
}

.feature-icon i {
  font-size: 0.7rem;
  color: var(--color-primary);
}

.feature-text {
  font-size: var(--font-size-sm);
  color: var(--color-gray-dark);
}

.product-footer {
  padding: 0 2rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.product-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-lg);
  font-weight: var(--font-weight-medium);
  font-size: var(--font-size-sm);
  transition: all 0.3s ease;
  background-color: var(--color-primary);
  color: white;
  box-shadow: 0 5px 15px rgba(var(--color-primary-rgb), 0.25);
  position: relative;
  overflow: hidden;
}

.product-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.7s;
}

.product-btn:hover::before {
  left: 100%;
}

.product-btn:hover {
  background-color: var(--color-primary-dark);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(var(--color-primary-rgb), 0.3);
}

/* Enhanced CTA Section */
.products-cta {
  position: relative;
  padding: 7rem 0;
  background: linear-gradient(135deg, #e6f7ff 0%, #b3e0ff 100%);
  margin-top: 6rem;
  overflow: hidden;
  color: var(--color-primary-dark);
}

.products-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('/images/shapes/circuit-pattern.svg') repeat;
  opacity: 0.05;
  z-index: 0;
}

.cta-content-wrapper {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.cta-title {
  font-size: var(--font-size-3xl);
  font-weight: var(--font-weight-bold);
  margin-bottom: 1.5rem;
}

.cta-description {
  font-size: var(--font-size-lg);
  opacity: 0.9;
  margin-bottom: 2.5rem;
  line-height: 1.6;
}

.cta-buttons {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
}

.cta-btn {
  padding: 1rem 2rem;
  border-radius: var(--radius-lg);
  font-weight: var(--font-weight-semibold);
  font-size: var(--font-size-base);
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  position: relative;
  overflow: hidden;
}

.cta-btn-primary {
  background-color: var(--color-primary-dark);
  color: white;
}

.cta-btn-primary:hover {
  transform: translateY(-5px);
  background-color: var(--color-primary);
  box-shadow: 0 10px 25px rgba(0, 71, 171, 0.2);
}

.cta-btn-outline {
  background-color: transparent;
  border: 2px solid var(--color-primary-dark);
  color: var(--color-primary-dark);
}

.cta-btn-outline:hover {
  background-color: rgba(0, 71, 171, 0.1);
  transform: translateY(-5px);
}

/* Animation Classes */
.fade-in {
  animation: fadeIn 1s ease-out forwards;
}

.slide-up {
  animation: slideUp 0.8s ease-out forwards;
}

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

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

/* Responsive Styles */
@media (max-width: 992px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .products-hero {
    padding: 5rem 0 4rem;
  }
  
  .products-hero h1 {
    font-size: var(--font-size-4xl);
  }
  
  .products-grid {
    grid-template-columns: 1fr;
  }
  
  .cta-buttons {
    flex-direction: column;
    gap: 1rem;
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
  }
  
  .cta-btn {
    width: 100%;
    justify-content: center;
  }
}
