/* Global Styles & Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes float {
  0% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0); }
}

/* Base Styles */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.flex {
  display: flex;
  gap: 40px;
  align-items: center;
}

.grid {
  display: grid;
  gap: 30px;
}

/* Hero Section */
.app-section {
  padding: 80px 0;
  animation: fadeIn 1s ease-out;
}

.app-content {
  flex: 1;
  animation: fadeInUp 0.8s 0.2s both;
}

.app-image {
  flex: 1;
  animation: fadeInUp 0.8s 0.4s both;
}

.app-image img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
  transition: transform 0.5s ease;
}

.app-image img:hover {
  transform: scale(1.02);
}

/* Introduction Section */
.intro-section {
  text-align: center;
  padding: 60px 0;
  background-color: #f8f9fa;
  animation: fadeIn 1s 0.6s both;
}

/* Two Column Section */
.two-column-section {
  padding: 80px 0;
}

.two-column-image {
  animation: fadeInUp 0.8s 0.8s both;
}

.two-column-image img {
  max-width: 100%;
  border-radius: 12px;
  box-shadow: 0 15px 30px rgba(0,0,0,0.1);
  transition: all 0.4s ease;
}

.two-column-image img:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.two-column-text {
  animation: fadeInUp 0.8s 1s both;
}

/* Card Sections */
.cards-section, .services-section {
  padding: 80px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 50px;
  animation: fadeInUp 0.8s 1.2s both;
}

.cards-section .grid {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.card, .service-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  animation: fadeInUp 0.6s both;
}

/* Individual card animations */
.cards-section .card:nth-child(1) { animation-delay: 0.4s; }
.cards-section .card:nth-child(2) { animation-delay: 0.6s; }
.cards-section .card:nth-child(3) { animation-delay: 0.8s; }

.services-section .service-card:nth-child(1) { animation-delay: 0.5s; }
.services-section .service-card:nth-child(2) { animation-delay: 0.7s; }
.services-section .service-card:nth-child(3) { animation-delay: 0.9s; }

.card:hover, .service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.card-header, .service-card .card-header {
  padding: 25px 25px 15px;
  background: #f8f9fa;
}

.icon {
  width: 60px;
  height: 60px;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #e6f7ff;
  border-radius: 50%;
  animation: float 4s ease-in-out infinite;
}

.icon img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.card h3, .service-card h3 {
  margin: 0 0 10px;
  font-size: 1.4rem;
}

.card p, .service-card p {
  padding: 0 25px 25px;
  margin: 0;
  color: #555;
  line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 768px) {
  .flex {
    flex-direction: column;
  }
  
  .app-content, .app-image,
  .two-column-text, .two-column-image {
    width: 100%;
  }
  
  .app-content {
    order: 2;
  }
  
  .app-image {
    order: 1;
  }
  
  .two-column-image {
    order: 1;
  }
  
  .two-column-text {
    order: 2;
  }
}