/**
 * AJAY Dev Studio - App Showcase Styles
 * Innovative, interactive app showcase with 3D effects and animations
 */

/* Page Hero styles */
.page-hero {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: white;
  padding: 8rem 0 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('../images/pattern-dots.svg'), url('../images/pattern-circuit.svg');
  background-position: center;
  opacity: 0.1;
  animation: heroBackgroundMove 20s linear infinite;
}

@keyframes heroBackgroundMove {
  0% {
    background-position: 0% 0%;
  }
  100% {
    background-position: 100% 100%;
  }
}

.page-hero h1 {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  color: white;
  position: relative;
  z-index: 1;
}

.page-hero p {
  font-size: 1.25rem;
  max-width: 800px;
  margin: 0 auto;
  color: rgba(255, 255, 255, 0.9);
  position: relative;
  z-index: 1;
}

/* Categories */
.showcase-categories {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 3rem;
}

.category-btn {
  background: none;
  border: none;
  padding: 0.5rem 1.25rem;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  color: var(--text);
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.category-btn::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(to right, var(--primary), var(--secondary));
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.category-btn:hover {
  color: var(--primary);
}

.category-btn:hover::before {
  width: 80%;
}

.category-btn.active {
  color: var(--primary);
  background-color: rgba(30, 136, 229, 0.1);
}

.category-btn.active::before {
  width: 80%;
}

/* App Showcase */
.app-showcase-section {
  padding: 5rem 0;
  background-color: var(--background);
}

.app-showcase {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  perspective: 1000px;
}

.showcase-app {
  display: grid;
  grid-template-columns: 1fr 3fr;
  gap: 2rem;
  background-color: white;
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  transform-style: preserve-3d;
  transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
  position: relative;
  overflow: hidden;
}

.showcase-app::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 20px;
  padding: 3px;
  background: linear-gradient(45deg, transparent 50%, var(--primary) 50%, var(--secondary) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.showcase-app:hover {
  transform: translateY(-10px) rotateX(2deg);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1), 0 0 20px rgba(30, 136, 229, 0.2);
}

.showcase-app:hover::before {
  opacity: 1;
  animation: borderRotate 3s linear infinite;
}

.app-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  position: relative;
}

.icon-wrapper {
  width: 150px;
  height: 150px;
  border-radius: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
  position: relative;
  z-index: 1;
}

.icon-wrapper::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 30px;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.4) 0%, transparent 70%);
  opacity: 0.7;
}

.icon-wrapper i {
  font-size: 70px;
  color: white;
  transition: all 0.5s ease;
}

.showcase-app:hover .icon-wrapper {
  transform: scale(1.1) rotate(-5deg);
}

.showcase-app:hover .icon-wrapper i {
  transform: scale(1.1);
}

.app-info {
  display: flex;
  flex-direction: column;
  transform: translateZ(0);
  transition: transform 0.5s ease;
}

.showcase-app:hover .app-info {
  transform: translateZ(30px);
}

.app-info h3 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  color: var(--primary);
  transition: all 0.3s ease;
}

.showcase-app:hover .app-info h3 {
  transform: scale(1.05);
  background: linear-gradient(120deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.app-tagline {
  font-size: 1.1rem;
  color: var(--secondary);
  margin-bottom: 1rem;
  font-weight: 500;
}

.app-description {
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.app-features {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.app-features span {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 500;
}

.app-features i {
  color: var(--secondary);
}

.app-actions {
  margin-top: auto;
  display: flex;
  gap: 1rem;
  opacity: 0.9;
  transform: translateY(5px);
  transition: all 0.5s ease;
}

.showcase-app:hover .app-actions {
  opacity: 1;
  transform: translateY(0);
}

/* CTA Section */
.cta-section {
  background: linear-gradient(135deg, var(--primary-light), var(--secondary-light));
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('../images/pattern-dots.svg');
  background-position: center;
  opacity: 0.1;
}

.cta-content {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  color: var(--text);
  position: relative;
  z-index: 1;
  background-color: rgba(255, 255, 255, 0.9);
  padding: 3rem;
  border-radius: 20px;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.cta-content h2 {
  margin-bottom: 1rem;
}

.cta-content .btn {
  margin-top: 1.5rem;
}

/* Animations for filtering */
.showcase-app {
  animation: appAppear 0.5s ease-out forwards;
}

@keyframes appAppear {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.showcase-app.filtered-out {
  animation: appDisappear 0.5s ease-out forwards;
}

@keyframes appDisappear {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(30px);
    display: none;
  }
}

/* Active Navigation Link */
nav ul li a.active {
  color: var(--primary);
}

nav ul li a.active::after {
  width: 100%;
}

/* Responsive Design */
@media (max-width: 992px) {
  .showcase-app {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .app-features {
    justify-content: center;
  }
  
  .app-actions {
    justify-content: center;
  }
  
  .page-hero h1 {
    font-size: 2.5rem;
  }
}

@media (max-width: 768px) {
  .page-hero {
    padding: 7rem 0 3rem;
  }
  
  .page-hero h1 {
    font-size: 2rem;
  }
  
  .page-hero p {
    font-size: 1rem;
  }
  
  .category-btn {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
  }
  
  .app-showcase-section {
    padding: 3rem 0;
  }
  
  .cta-content {
    padding: 2rem;
  }
}

@media (max-width: 576px) {
  .icon-wrapper {
    width: 120px;
    height: 120px;
  }
  
  .icon-wrapper i {
    font-size: 50px;
  }
  
  .app-info h3 {
    font-size: 1.5rem;
  }
  
  .app-tagline {
    font-size: 1rem;
  }
  
  .app-features {
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
  }
  
  .showcase-app {
    padding: 1.5rem;
  }
  
  .cta-content {
    padding: 1.5rem;
  }
}

/* Button Variants */
.btn-outline-secondary {
  background-color: transparent;
  border: 2px solid var(--secondary);
  color: var(--secondary);
}

.btn-outline-secondary::before {
  background: linear-gradient(45deg, var(--secondary-dark), var(--secondary));
  opacity: 0;
  transform: scale(0.5);
}

.btn-outline-secondary:hover {
  color: white;
}

.btn-outline-secondary:hover::before {
  opacity: 1;
  transform: scale(1);
} 