/* Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  background: linear-gradient(to bottom, #0C0B10, #080709);
  color: #FFFFFF;
  line-height: 1.6;
  min-height: 100vh;
}

/* Typography */
h1 {
  font-size: 4rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
  background: linear-gradient(to right, #FFFFFF, #8B7AB8);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

h2 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
}

h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

p {
  margin-bottom: 1rem;
}

.subtitle {
  color: #94929E;
  font-size: 1.25rem;
  max-width: 42rem;
  margin: 0 auto;
}

.section-title {
  text-align: center;
  margin-bottom: 4rem;
}

/* Layout */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 6rem 0;
}

.section-alt {
  background-color: #0A090D;
}

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

/* Card Styles */
.card {
  background-color: #14121A;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.card:hover::before {
  transform: scaleX(1);
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(to right, #4A3B78, #6B5A9A);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

/* Grid Layouts */
.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Icon Container */
.icon-container {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(74, 59, 120, 0.15) 0%, rgba(54, 43, 87, 0.15) 100%);
  border: 1px solid rgba(74, 59, 120, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.icon {
  width: 28px;
  height: 28px;
  color: #8B7AB8;
}

/* Hero Section Specific */
.hero {
  position: relative;
  padding: 6rem 0;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.2;
}

.hero-bg-circle-1 {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 24rem;
  height: 24rem;
  background-color: #4A3B78;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.2;
  transform: translate(-50%, -50%);
}

.hero-bg-circle-2 {
  position: absolute;
  top: 25%;
  right: 25%;
  width: 16rem;
  height: 16rem;
  background-color: #6B5A9A;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.1;
}

.hero-content {
  position: relative;
  z-index: 10;
}

/* CTA Section */
.cta-section {
  background: linear-gradient(to right, #362B57, #4A3B78);
  padding: 4rem 0;
}

.cta-title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.button-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
}

@media (min-width: 640px) {
  .button-container {
    flex-direction: row;
    justify-content: center;
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.btn:hover {
  transform: translateY(-4px);
}

.btn-primary {
  background-color: white;
  color: #362B57;
}

.btn-secondary {
  background-color: transparent;
  border: 1px solid white;
  color: white;
}

.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.chevron {
  margin-left: 0.5rem;
}

/* Service Card Specific */
.service-card {
  padding: 2.5rem;
}

.service-card-content {
  flex-grow: 1;
}

.service-card-footer {
  margin-top: 1.5rem;
  display: flex;
  align-items: center;
}

.service-link {
  color: #8B7AB8;
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  transition: color 0.3s ease;
}

.service-link:hover {
  color: #FFFFFF;
}

.service-link-arrow {
  margin-left: 0.5rem;
  transition: transform 0.3s ease;
}

.service-link:hover .service-link-arrow {
  transform: translateX(4px);
}

/* Intro Section */
.intro-section {
  max-width: 800px;
  margin: 0 auto 4rem;
  text-align: center;
}

.intro-text {
  color: #94929E;
  font-size: 1.125rem;
  line-height: 1.8;
}

@media (max-width: 768px) {
  h1 {
    font-size: 3rem;
  }
  
  h2 {
    font-size: 2rem;
  }
  
  .section {
    padding: 4rem 0;
  }
}

/* Popup Styles */
.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(12, 11, 16, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  backdrop-filter: blur(5px);
}

.popup-overlay.active {
  opacity: 1;
  visibility: visible;
}

.popup-content {
  background: linear-gradient(135deg, #14121A, #1A1721);
  border-radius: 16px;
  width: 90%;
  max-width: 500px;
  position: relative;
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transform: translateY(30px);
  opacity: 0;
  transition: transform 0.4s ease, opacity 0.4s ease;
  overflow: hidden;
}

.popup-overlay.active .popup-content {
  transform: translateY(0);
  opacity: 1;
}

.popup-header {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 1rem;
}

.popup-close {
  font-size: 1.5rem;
  color: #94929E;
  cursor: pointer;
  transition: color 0.2s ease;
  line-height: 1;
  height: 30px;
  width: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.popup-close:hover {
  color: #FFFFFF;
}

.popup-body {
  text-align: center;
}

.popup-icon {
  width: 80px;
  height: 80px;
  background: rgba(74, 59, 120, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  color: #8B7AB8;
}

.popup-body h3 {
  font-size: 1.75rem;
  margin-bottom: 1rem;
  background: linear-gradient(to right, #FFFFFF, #8B7AB8);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.popup-body p {
  color: #94929E;
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 2rem;
}

.popup-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

@media (max-width: 480px) {
  .popup-content {
    padding: 1.5rem;
  }
  
  .popup-buttons {
    flex-direction: column;
  }
  
  .popup-body h3 {
    font-size: 1.5rem;
  }
  
  .popup-body p {
    font-size: 1rem;
  }
}

/* Service Card Grid - Production Override */
.service-card-container,
.service-grid {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 2rem !important;
  width: 100% !important;
  margin: 4rem auto !important;
}

.service-card {
  width: 100% !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  text-align: center !important;
  background-color: rgba(20, 20, 30, 0.5) !important;
  border-radius: 12px !important;
  padding: 2rem !important;
  transition: transform 0.3s ease, box-shadow 0.3s ease !important;
}

/* Ensure consistent service card styling */
.service-card:hover {
  transform: translateY(-5px) !important;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3) !important;
}
