/* Enhanced migration.css with modern styling based on automation/applications patterns */

/* Root variables for consistent theming */
:root {
  --primary-color: #4361ee;
  --primary-light: #4895ef;
  --primary-lighter: #4cc9f0;
  --accent-color: #8021e0;
  --dark-bg: #111111;
  --card-bg: rgba(25, 25, 25, 0.7);
  --text-light: #ffffff;
  --text-muted: #a0a0a0;
  --success-color: #2ecc71;
  --warning-color: #f39c12;
  --danger-color: #e74c3c;
}

body {
  background-color: var(--dark-bg);
  color: var(--text-light);
  font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* Hero section with enhanced styling */
.cloud-hero {
  background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.9)), url("/assets/img/banner16.png");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  min-height: 85vh;
  position: relative;
  display: flex;
  align-items: center;
}

@media only screen and (min-width: 768px) {
  .cloud-hero {
    background-attachment: fixed !important;
  }
}

/* Featured tag styling */
.featured-tag {
  display: inline-block;
  background: rgba(67, 97, 238, 0.2);
  padding: 0.5rem 1rem;
  border-radius: 30px;
  margin-bottom: 1rem;
  font-weight: 600;
  letter-spacing: 1px;
  font-size: 0.8rem;
  color: var(--primary-lighter);
  border: 1px solid rgba(67, 97, 238, 0.3);
}

.featured-tag i {
  margin-right: 0.5rem;
  color: var(--primary-lighter);
}

/* Gradient text styling */
.gradient-text {
  background: linear-gradient(90deg, var(--primary-light), var(--primary-lighter));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  font-weight: 800;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  line-height: 1.5;
  max-width: 800px;
}

/* Migration list container with enhanced styling */
.migration-list-container {
  background: rgba(15, 15, 15, 0.7);
  border-radius: 16px;
  padding: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  position: relative;
  height: 100%;
  overflow: hidden;
}

.migration-list-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 70% 30%, rgba(67, 97, 238, 0.1) 0%, transparent 70%);
  z-index: 0;
}

/* Badge styling */
.save-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 100px;
  height: 100px;
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
    box-shadow: 0 5px 15px rgba(67, 97, 238, 0.3);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(67, 97, 238, 0.5);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 5px 15px rgba(67, 97, 238, 0.3);
  }
}

.badge-content {
  text-align: center;
}

.badge-number {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  color: white;
  line-height: 1;
}

.badge-text {
  display: block;
  font-size: 0.8rem;
  color: white;
  font-weight: 500;
  line-height: 1.2;
}

/* Migration stats styling */
.migration-stats {
  list-style: none;
  padding: 0;
  margin: 0;
  position: relative;
  z-index: 1;
}

.migration-stats li {
  background: rgba(30, 30, 30, 0.5);
  border-radius: 12px;
  padding: 1.2rem;
  margin-bottom: 1rem;
  transition: all 0.3s ease;
  animation: fadeInUp 0.5s forwards;
  opacity: 0;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.migration-stats li:hover {
  transform: translateX(10px);
  background: rgba(67, 97, 238, 0.15);
  border-color: rgba(67, 97, 238, 0.3);
}

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

.migration-stats li:nth-child(1) {
  animation-delay: 0.1s;
}

.migration-stats li:nth-child(2) {
  animation-delay: 0.3s;
}

.migration-stats li:nth-child(3) {
  animation-delay: 0.5s;
}

.stat-number {
  font-size: 2.2rem;
  font-weight: 800;
  background: linear-gradient(90deg, var(--primary-light), var(--primary-lighter));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
  margin-bottom: 0.5rem;
}

.stat-text {
  color: snow;
  font-size: 1rem;
  line-height: 1.5;
}

/* CTA button styling */
.cta-buttons {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

.btn {
  display: inline-block;
  padding: 0.8rem 2rem;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
  color: white;
  border: none;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(67, 97, 238, 0.4);
}

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

.btn-outline:hover {
  background-color: var(--primary-light);
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(67, 97, 238, 0.4);
}

.btn-large {
  padding: 1.2rem 2.5rem;
  font-size: 1.1rem;
}

.btn i {
  margin-left: 0.5rem;
  transition: transform 0.2s ease;
}

.btn:hover i {
  transform: translateX(3px);
}

/* Sections styling */
.sections {
  padding: 5rem 0;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title {
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-light);
}

.section-divider {
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--primary-lighter));
  margin: 1rem auto;
}

.section-subtitle {
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 800px;
  margin: 1rem auto 0;
  line-height: 1.6;
}

.bg-accent {
  position: relative;
  overflow: hidden;
}

.bg-accent::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(67, 97, 238, 0.08) 0%, rgba(76, 201, 240, 0.05) 100%);
  z-index: -1;
}

/* Platforms grid styling */
.platforms-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.platform-card {
  background: var(--card-bg);
  border-radius: 16px;
  padding: 2.5rem;
  text-align: center;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.05);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.platform-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  border-color: rgba(67, 97, 238, 0.2);
}

.platform-card.featured {
  background: linear-gradient(135deg, rgba(67, 97, 238, 0.15) 0%, rgba(76, 201, 240, 0.05) 100%);
  border-color: rgba(67, 97, 238, 0.3);
  position: relative;
  z-index: 1;
  transform: scale(1.05);
}

.platform-card.featured:hover {
  transform: scale(1.05) translateY(-10px);
}

.platform-icon {
  font-size: 3rem;
  color: var(--primary-light);
  margin-bottom: 1.5rem;
}

.platform-title {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  color: var(--text-light);
  font-weight: 600;
}

.platform-features {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem 0;
  text-align: left;
}

.platform-features li {
  display: flex;
  align-items: center;
  margin-bottom: 0.75rem;
  color: var(--text-muted);
}

.platform-features li i {
  color: var(--success-color);
  margin-right: 0.8rem;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.platform-link {
  display: inline-block;
  color: var(--primary-lighter);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  margin-top: auto;
}

.platform-link:hover {
  color: var(--primary-light);
}

.platform-link i {
  margin-left: 0.5rem;
  transition: all 0.3s ease;
}

.platform-link:hover i {
  transform: translateX(5px);
}

/* Migration journey styling */
.migration-journey {
  position: relative;
  padding: 2rem 0;
  max-width: 900px;
  margin: 0 auto;
}

.journey-phase {
  display: flex;
  align-items: flex-start;
  margin-bottom: 3rem;
  position: relative;
}

.phase-number {
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.5rem;
  color: white;
  margin-right: 2rem;
  box-shadow: 0 5px 15px rgba(67, 97, 238, 0.3);
  position: relative;
  z-index: 2;
}

.journey-phase:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 60px;
  left: 30px;
  width: 2px;
  height: calc(100% + 1rem);
  background: linear-gradient(to bottom, var(--primary-color), transparent);
  z-index: 1;
}

.phase-content {
  flex-grow: 1;
}

.phase-title {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
  color: var(--text-light);
  font-weight: 600;
}

.phase-description {
  color: var(--text-muted);
  margin-bottom: 1rem;
  line-height: 1.6;
  font-size: 1.1rem;
}

.phase-details {
  list-style: none;
  padding: 0;
  margin: 0;
}

.phase-details li {
  display: flex;
  align-items: center;
  margin-bottom: 0.5rem;
  color: var(--text-muted);
}

.phase-details li i {
  color: var(--success-color);
  margin-right: 0.8rem;
  font-size: 0.9rem;
}

/* Strategies container styling */
.strategies-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  margin-top: 3rem;
}

.strategy-card {
  background: var(--card-bg);
  border-radius: 16px;
  padding: 2.5rem;
  width: 35%;
  text-align: center;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.strategy-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  border-color: rgba(67, 97, 238, 0.2);
}

.strategy-card.featured {
  background: linear-gradient(135deg, rgba(67, 97, 238, 0.15) 0%, rgba(76, 201, 240, 0.05) 100%);
  border-color: rgba(67, 97, 238, 0.3);
  position: relative;
  z-index: 1;
  transform: scale(1.05);
}

.strategy-card.featured:hover {
  transform: scale(1.05) translateY(-10px);
}

.strategy-icon {
  font-size: 3rem;
  color: var(--primary-light);
  margin-bottom: 1.5rem;
}

.strategy-title {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: var(--text-light);
  font-weight: 600;
}

.strategy-description p {
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.strategy-benefits {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}

.benefit-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.benefit-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(30, 30, 30, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-lighter);
}

.benefit-text {
  font-size: 0.9rem;
  color: var(--text-light);
  font-weight: 500;
  text-align: center;
}

/* Case study section styling */
.case-study-section {
  padding: 5rem 0;
}

.case-study-image-container {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.case-study-image {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  transition: all 0.3s ease;
}

.case-study-image:hover {
  transform: scale(1.02);
}

.case-study-image img {
  width: 100%;
  height: auto;
  display: block;
  transition: all 0.3s ease;
}

.industry-badge {
  position: absolute;
  top: 20px;
  right: -30px;
  background: var(--primary-color);
  color: white;
  padding: 0.5rem 2rem;
  font-weight: 600;
  transform: rotate(45deg);
  z-index: 2;
  font-size: 0.9rem;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.case-study-content {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.case-study-title {
  font-size: 2.2rem;
  margin-bottom: 2rem;
  color: var(--text-light);
  font-weight: 700;
}

.case-study-results {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.result-item {
  background: var(--card-bg);
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
  flex: 1;
  min-width: 120px;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.result-item:hover {
  transform: translateY(-5px);
  background: rgba(67, 97, 238, 0.15);
  border-color: rgba(67, 97, 238, 0.3);
}

.result-number {
  font-size: 2.5rem;
  font-weight: 800;
  background: linear-gradient(90deg, var(--primary-light), var(--primary-lighter));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
  margin-bottom: 0.5rem;
  line-height: 1;
}

.result-text {
  font-size: 1rem;
  color: var(--text-muted);
  font-weight: 500;
}

.case-study-description {
  color: var(--text-muted);
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 2rem;
}

.solution-highlights h4 {
  color: var(--text-light);
  font-size: 1.3rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.solution-highlights ul {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem 0;
}

.solution-highlights li {
  display: flex;
  align-items: center;
  margin-bottom: 0.75rem;
  color: var(--text-muted);
}

.solution-highlights li i {
  color: var(--success-color);
  margin-right: 0.8rem;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.case-study-link {
  display: inline-block;
  color: var(--primary-lighter);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  font-size: 1.1rem;
}

.case-study-link:hover {
  color: var(--primary-light);
}

.case-study-link i {
  margin-left: 0.5rem;
  transition: all 0.3s ease;
}

.case-study-link:hover i {
  transform: translateX(5px);
}

/* Connected services grid styling */
.connected-services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.service-connection-card {
  background: var(--card-bg);
  border-radius: 16px;
  padding: 2.5rem;
  text-align: center;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.05);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.service-connection-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  border-color: rgba(67, 97, 238, 0.2);
}

.connection-icon {
  font-size: 2.5rem;
  color: var(--primary-light);
  margin-bottom: 1.5rem;
}

.connection-title {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--text-light);
  font-weight: 600;
}

.connection-description {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  line-height: 1.6;
  flex-grow: 1;
}

.connection-link {
  display: inline-block;
  color: var(--primary-lighter);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  margin-top: auto;
}

.connection-link:hover {
  color: var(--primary-light);
}

.connection-link i {
  margin-left: 0.5rem;
  transition: all 0.3s ease;
}

.connection-link:hover i {
  transform: translateX(5px);
}

/* CTA section styling */
.cta-section {
  background: linear-gradient(135deg, rgba(67, 97, 238, 0.15) 0%, rgba(114, 9, 183, 0.1) 100%);
  padding: 4rem 0;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(67, 97, 238, 0.3) 0%, transparent 70%);
  top: -150px;
  right: -150px;
  border-radius: 50%;
  z-index: 0;
}

.cta-section::after {
  content: '';
  position: absolute;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(114, 9, 183, 0.2) 0%, transparent 70%);
  bottom: -100px;
  left: -100px;
  border-radius: 50%;
  z-index: 0;
}

.cta-content {
  position: relative;
  z-index: 1;
  padding: 2rem;
  background: rgba(15, 15, 15, 0.5);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.cta-text {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-bottom: 0;
}

/* Contact card styling */
.contact-card {
  background: var(--card-bg);
  border-radius: 16px;
  padding: 3rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.3s ease;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.contact-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  border-color: rgba(67, 97, 238, 0.2);
}

.form-row {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.form-col {
  flex: 1;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--text-light);
}

.form-control {
  width: 100%;
  padding: 1rem 1.2rem;
  background: rgba(30, 30, 30, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: var(--text-light);
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-light);
  box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.2);
}

.form-control::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

textarea.form-control {
  min-height: 120px;
  resize: vertical;
}

.form-submit {
  text-align: center;
  margin-top: 2rem;
}

/* Back to top button */
#myBtn {
  display: none;
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 99;
  border: none;
  outline: none;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
  color: white;
  cursor: pointer;
  padding: 1rem;
  border-radius: 50%;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  width: 50px;
  height: 50px;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

#myBtn:hover {
  background: linear-gradient(135deg, var(--primary-light), var(--primary-lighter));
  transform: translateY(-3px);
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .gradient-text {
    font-size: 3rem;
  }
  
  .section-title {
    font-size: 2.2rem;
  }
  
  .strategy-card, .platform-card {
    width: 100%;
  }
  
  .platform-card.featured, .strategy-card.featured {
    transform: scale(1);
  }
  
  .platform-card.featured:hover, .strategy-card.featured:hover {
    transform: translateY(-10px);
  }
  
  .form-row {
    flex-direction: column;
    gap: 0;
  }
  
  .case-study-title {
    margin-top: 2rem;
    font-size: 1.8rem;
  }
  
  .strategy-benefits {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .gradient-text {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
  }
  
  .cloud-hero {
    min-height: auto;
    padding: 6rem 0;
  }
  
  .cta-buttons {
    flex-direction: column;
  }
  
  .migration-list-container {
    margin-top: 2rem;
  }
  
  .contact-card {
    padding: 1.5rem;
  }
  
  .journey-phase {
    flex-direction: column;
  }
  
  .phase-number {
    margin-bottom: 1rem;
    margin-right: 0;
  }
  
  .journey-phase:not(:last-child)::after {
    display: none;
  }
}