/* ===== VARIABLES ===== */
:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-light: #3b82f6;
  --secondary: #7c3aed;
  --accent: #06b6d4;
  --text: #1f2937;
  --text-light: #6b7280;
  --background: #ffffff;
  --background-alt: #f9fafb;
  --border: #e5e7eb;
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --radius: 8px;
  --transition: all 0.3s ease;
}

/* ===== RESET & BASE STYLES ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--background);
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
}

/* ===== CONTAINER ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}

.section {
  padding: 80px 0;
  width: 100%;
}

.section-title {
  text-align: center;
  margin-bottom: 60px;
}

.section-title h2 {
  font-size: 2.5rem;
  margin-bottom: 16px;
  color: var(--text);
}

.section-title p {
  font-size: 1.125rem;
  color: var(--text-light);
  max-width: 700px;
  margin: 0 auto;
}

/* ===== HERO SECTION ===== */
.hero {
  position: relative;
  padding: 120px 0 80px;
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  overflow: hidden;
  width: 100%;
}

.floating-elements {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
}

.floating-element {
  position: absolute;
  font-size: 2rem;
  color: var(--accent);
  opacity: 0.2;
  animation: float 6s ease-in-out infinite;
}

.floating-element:nth-child(1) {
  top: 20%;
  left: 10%;
  animation-delay: 0s;
}

.floating-element:nth-child(2) {
  top: 60%;
  left: 5%;
  animation-delay: 1s;
}

.floating-element:nth-child(3) {
  top: 30%;
  right: 10%;
  animation-delay: 2s;
}

.floating-element:nth-child(4) {
  top: 70%;
  right: 15%;
  animation-delay: 3s;
}

.floating-element:nth-child(5) {
  top: 10%;
  right: 20%;
  animation-delay: 4s;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(10deg);
  }
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
  padding: 0 10px;
}

.hero-content h1 {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 24px;
  line-height: 1.2;
}

.hero-content p {
  font-size: 1.25rem;
  color: var(--text-light);
  margin-bottom: 32px;
}

.btn {
  display: inline-block;
  background: var(--primary);
  color: white;
  padding: 12px 32px;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

.btn:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.pulse {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.7);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(37, 99, 235, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 99, 235, 0);
  }
}

.hero-highlights {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
}

.hero-highlights li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
}

.hero-highlights i {
  color: var(--accent);
}

/* ===== PACKAGES SECTION ===== */
.packages {
  background-color: var(--background-alt);
}

.plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.plan {
  background: white;
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
  transition: var(--transition);
  position: relative;
  display: flex;
  flex-direction: column;
}

.plan:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.plan.featured {
  border: 2px solid var(--accent);
  transform: scale(1.05);
}

.plan.featured:hover {
  transform: scale(1.05) translateY(-5px);
}

.popular-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: white;
  padding: 6px 20px;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 600;
}

.plan-header {
  text-align: center;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.plan-header h3 {
  font-size: 1.5rem;
  margin-bottom: 16px;
  color: var(--text);
}

.price {
  font-size: 3rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
}

.price span {
  font-size: 1rem;
  color: var(--text-light);
}

.plan-header p {
  color: var(--text-light);
  font-size: 0.875rem;
}

.plan ul {
  list-style: none;
  margin-bottom: 30px;
  flex-grow: 1;
}

.plan li {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  font-size: 0.95rem;
}

.plan li i.fa-check {
  color: #10b981;
}

.plan li i.fa-times {
  color: #ef4444;
}

/* ===== PRO PLAN STYLING ===== */
.plan:last-child {
  border: 2px solid var(--secondary);
  position: relative;
  overflow: hidden;
}

.plan:last-child::before {
  content: "PRO";
  position: absolute;
  top: 20px;
  right: -30px;
  background: var(--secondary);
  color: white;
  padding: 5px 40px;
  transform: rotate(45deg);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 1px;
}

.plan:last-child .plan-header h3 {
  color: var(--secondary);
}

.plan:last-child .price {
  color: var(--secondary);
}

.plan:last-child .btn {
  background: var(--secondary);
}

.plan:last-child .btn:hover {
  background: #6d28d9;
}

/* ===== SERVICES DETAILS ===== */
.details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
}

.detail-card {
  background: white;
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.detail-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.detail-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.detail-icon i {
  font-size: 1.5rem;
  color: white;
}

.detail-card h3 {
  font-size: 1.5rem;
  margin-bottom: 16px;
  color: var(--text);
}

.detail-card p {
  color: var(--text-light);
  margin-bottom: 20px;
}

.detail-card ul {
  list-style: none;
}

.detail-card li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 8px;
  color: var(--text-light);
}

.detail-card li::before {
  content: "•";
  color: var(--accent);
  position: absolute;
  left: 0;
  font-weight: bold;
}

/* ===== PROCESS SECTION ===== */
.process-steps {
  max-width: 800px;
  margin: 0 auto;
}

.step {
  display: flex;
  align-items: flex-start;
  margin-bottom: 40px;
  position: relative;
}

.step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 60px;
  left: 30px;
  width: 2px;
  height: calc(100% - 20px);
  background: var(--border);
  z-index: -1;
}

.step-number {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 1.25rem;
  margin-right: 30px;
  flex-shrink: 0;
}

.step-content {
  flex-grow: 1;
}

.step-content h3 {
  font-size: 1.5rem;
  margin-bottom: 12px;
  color: var(--text);
}

.step-content p {
  color: var(--text-light);
}

/* ===== BENEFITS SECTION ===== */
.benefits {
  background-color: var(--background-alt);
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.benefit {
  background: white;
  border-radius: var(--radius);
  padding: 30px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.benefit:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.benefit i {
  font-size: 3rem;
  color: var(--accent);
  margin-bottom: 20px;
}

.benefit h3 {
  font-size: 1.5rem;
  margin-bottom: 16px;
  color: var(--text);
}

.benefit p {
  color: var(--text-light);
}

/* ===== CASE STUDIES ===== */
.cases {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.case {
  background: white;
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.case:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.case h3 {
  font-size: 1.5rem;
  margin-bottom: 16px;
  color: var(--text);
}

.case p {
  color: var(--text-light);
  margin-bottom: 20px;
  flex-grow: 1;
}

.case .btn {
  align-self: flex-start;
}

/* ===== FAQ SECTION ===== */
.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

details {
  background: white;
  border-radius: var(--radius);
  margin-bottom: 16px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

summary {
  padding: 20px;
  font-weight: 600;
  cursor: pointer;
  position: relative;
  list-style: none;
  transition: var(--transition);
}

summary:hover {
  background: var(--background-alt);
}

summary::after {
  content: "+";
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  color: var(--accent);
  transition: var(--transition);
}

details[open] summary::after {
  content: "-";
}

details p {
  padding: 0 20px 20px;
  color: var(--text-light);
}

/* ===== CTA CONTACT SECTION ===== */
.cta-contact {
  background: linear-gradient(135deg, #1e3a8a 0%, #3730a3 100%);
  color: white;
  overflow: hidden;
  width: 100%;
}

.cta-contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
}

.cta h2 {
  font-size: 2.25rem;
  margin-bottom: 20px;
}

.cta p {
  font-size: 1.125rem;
  margin-bottom: 30px;
  opacity: 0.9;
}

.contact {
  background: white;
  border-radius: var(--radius);
  padding: 40px;
  color: var(--text);
  box-shadow: var(--shadow-lg);
  width: 100%;
}

.contact h2 {
  font-size: 1.75rem;
  margin-bottom: 24px;
  color: var(--text);
}

.contact form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact input,
.contact select,
.contact textarea {
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 1rem;
  transition: var(--transition);
  width: 100%;
}

.contact input:focus,
.contact select:focus,
.contact textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.contact button {
  background: var(--primary);
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
}

.contact button:hover {
  background: var(--primary-dark);
}

/* ===== ANIMATIONS ===== */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.slide-in-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.slide-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.slide-in-right {
  opacity: 0;
  transform: translateX(50px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.slide-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* ===== RESPONSIVE STYLES ===== */
@media (max-width: 992px) {
  .hero-content h1 {
    font-size: 2.75rem;
  }
  
  .cta-contact-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .plan.featured {
    transform: scale(1);
  }
  
  .plan.featured:hover {
    transform: translateY(-5px);
  }
}

@media (max-width: 768px) {
  html, body {
    overflow-x: hidden !important;
  }

  .container {
    padding: 0 15px;
  }

  .section {
    padding: 60px 0;
  }
  
  .section-title h2 {
    font-size: 2rem;
  }
  
  .hero {
    padding: 80px 0;
    background-size: cover;
    background-position: center;
  }
  
  .hero-content h1 {
    font-size: 2.25rem;
  }
  
  .hero-content p {
    font-size: 1.125rem;
  }
  
  .hero-highlights {
    flex-direction: column;
    align-items: center;
  }
  
  .step {
    flex-direction: column;
    text-align: center;
  }
  
  .step-number {
    margin-right: 0;
    margin-bottom: 20px;
  }
  
  .step:not(:last-child)::after {
    display: none;
  }
  
  .details-grid,
  .benefits-grid,
  .cases {
    grid-template-columns: 1fr;
  }
  
  .cta-contact-container {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 50px 15px;
  }
  
  .contact {
    padding: 30px 20px;
  }
  
  /* Ensure floating elements don't cause overflow */
  .floating-element {
    font-size: 1.5rem;
  }
  
  .floating-element:nth-child(1) {
    left: 5%;
  }
  
  .floating-element:nth-child(2) {
    left: 2%;
  }
  
  .floating-element:nth-child(3) {
    right: 5%;
  }
  
  .floating-element:nth-child(4) {
    right: 10%;
  }
  
  .floating-element:nth-child(5) {
    right: 15%;
  }
}

@media (max-width: 576px) {
  .container {
    padding: 0 16px;
  }
  
  .section-title h2 {
    font-size: 1.75rem;
  }
  
  .hero-content h1 {
    font-size: 2rem;
  }
  
  .hero-content p {
    font-size: 1rem;
  }
  
  .plans {
    grid-template-columns: 1fr;
  }
  
  .plan {
    padding: 20px;
  }
  
  .detail-card {
    padding: 20px;
  }
  
  .contact {
    padding: 30px 20px;
  }
  
  .details-grid {
    grid-template-columns: 1fr;
  }
  
  /* Further adjust floating elements for very small screens */
  .floating-element {
    font-size: 1.2rem;
  }
  
  .floating-element:nth-child(4),
  .floating-element:nth-child(5) {
    display: none;
  }
}

/* ===== FINAL SAFETY FIX ===== */
body::after {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: transparent;
  pointer-events: none;
  z-index: -1;
}