/* CSS Variables */
:root {
  --primary-bg: hsl(200, 40%, 6%);
  --secondary-bg: hsl(215, 28%, 12%);
  --accent-blue: hsl(211, 84%, 54%);
  --accent-blue-light: hsl(211, 84%, 64%);
  --accent-blue-dark: hsl(211, 84%, 44%);
  --text-primary: hsl(0, 0%, 100%);
  --text-secondary: hsl(215, 20%, 65%);
  --hover-bg: hsl(215, 25%, 18%);
  --border-color: hsl(215, 15%, 25%);
  --success-color: hsl(142, 71%, 45%);
  --gradient-primary: linear-gradient(135deg, var(--accent-blue), var(--accent-blue-light));
  --gradient-secondary: linear-gradient(135deg, var(--secondary-bg), hsl(215, 28%, 8%));
  --box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
  --box-shadow-hover: 0 15px 50px rgba(0, 0, 0, 0.5);
}

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

body {
  font-family: 'Inter', sans-serif;
  background: linear-gradient(135deg, var(--primary-bg), hsl(200, 40%, 4%));
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

/* Utility Classes */
.gradient-text {
  background: linear-gradient(135deg, var(--accent-blue), hsl(211, 84%, 64%), hsl(270, 84%, 64%));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.modern-card {
  background: var(--gradient-secondary);
  border: 1px solid var(--border-color);
  border-radius: 1rem;
  box-shadow: var(--box-shadow);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}

.modern-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-blue), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modern-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--box-shadow-hover);
  border-color: var(--accent-blue);
}

.modern-card:hover::before {
  opacity: 1;
}

.modern-button {
  background: var(--gradient-primary);
  border: none;
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.modern-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.modern-button:hover::before {
  left: 100%;
}

.modern-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(59, 130, 246, 0.5);
  background: linear-gradient(135deg, var(--accent-blue-light), var(--accent-blue));
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 60;
  background: var(--secondary-bg);
  border: 1px solid var(--border-color);
  border-radius: 0.5rem;
  padding: 0.75rem;
  color: var(--text-primary);
  cursor: pointer;
  display: none;
  transition: all 0.3s ease;
}

.mobile-menu-toggle:hover {
  background: var(--hover-bg);
}

.mobile-menu-toggle svg {
  width: 24px;
  height: 24px;
  stroke: var(--text-primary);
  fill: none;
}

/* Sidebar Navigation */
.sidebar {
  position: fixed;
  left: 0;
  top: 0;
  height: 100vh;
  width: 16rem;
  background: var(--gradient-secondary);
  border-right: 1px solid var(--border-color);
  z-index: 50;
  transition: transform 0.3s ease;
  backdrop-filter: blur(10px);
  box-shadow: 2px 0 20px rgba(0, 0, 0, 0.3);
}

.sidebar-content {
  padding: 2rem 1.5rem;
  height: 100%;
  overflow-y: auto;
}

.logo-container {
  display: flex;
  align-items: center;
  margin-bottom: 2rem;
}

.logo-img {
  width: 2rem;
  height: 2rem;
  margin-right: 0.75rem;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
  transition: transform 0.3s ease;
}

.logo-img:hover {
  transform: scale(1.05);
}

.logo-text {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
}

.nav-menu {
  list-style: none;
}

.nav-menu li {
  margin-bottom: 0.5rem;
}

.nav-link {
  display: flex;
  align-items: center;
  padding: 0.75rem;
  border-radius: 0.5rem;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.nav-link::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 3px;
  background: var(--accent-blue);
  transform: scaleY(0);
  transition: transform 0.3s ease;
}

.nav-link:hover {
  background: var(--hover-bg);
  color: var(--text-primary);
  transform: translateX(4px);
}

.nav-link:hover::before {
  transform: scaleY(1);
}

.nav-link.active {
  background: var(--gradient-primary);
  color: var(--text-primary);
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.nav-link.active::before {
  transform: scaleY(1);
}

.nav-icon {
  width: 1.25rem;
  height: 1.25rem;
  margin-right: 0.75rem;
  fill: currentColor;
  stroke: currentColor;
  flex-shrink: 0;
}

/* Main Container */
.main-container {
  margin-left: 16rem;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.main-content {
  flex: 1;
  padding: 3rem 0;
}

/* Page Content */
.page-content {
  display: none;
}

.page-content.active {
  display: block;
}

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

.page-title {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.page-description {
  font-size: 1.25rem;
  color: var(--text-secondary);
  max-width: 42rem;
  margin: 0 auto;
}

/* Hero Section */
.hero-section {
  text-align: center;
  margin-bottom: 5rem;
  position: relative;
  padding: 8rem 0;
  overflow: hidden;
}

.hero-background {
  position: absolute;
  inset: 0;
  background: transparent;
}

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

.logo-hero {
  position: relative;
  display: flex;
  justify-content: center;
  margin-bottom: 2rem;
}

.logo-glow {
  position: absolute;
  inset: -20px;
  background: 
    radial-gradient(circle, rgba(37, 99, 235, 0.4) 0%, transparent 70%),
    radial-gradient(circle, rgba(147, 51, 234, 0.3) 0%, transparent 70%);
  border-radius: 50%;
  filter: blur(20px);
  opacity: 0.8;
  animation: logoGlow 4s ease-in-out infinite;
}

.hero-logo {
  width: 8rem;
  height: 8rem;
  position: relative;
  z-index: 10;
  filter: drop-shadow(0 10px 20px rgba(37, 99, 235, 0.3)) 
          drop-shadow(0 4px 8px rgba(0, 0, 0, 0.4));
  transition: all 0.3s ease;
  animation: float 3s ease-in-out infinite;
}

.hero-logo:hover {
  transform: scale(1.05);
  filter: drop-shadow(0 15px 30px rgba(37, 99, 235, 0.5)) 
          drop-shadow(0 6px 12px rgba(0, 0, 0, 0.4));
}

@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-10px) rotate(2deg); }
}

@keyframes logoGlow {
  0%, 100% { 
    opacity: 0.8; 
    transform: scale(1); 
  }
  50% { 
    opacity: 1; 
    transform: scale(1.1); 
  }
}

.hero-title {
  font-size: 4rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.hero-description {
  font-size: 1.5rem;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  max-width: 48rem;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  justify-content: center;
}

/* Button Styles */
.btn {
  display: inline-block;
  padding: 1rem 2rem;
  border-radius: 0.5rem;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  font-size: 1.125rem;
}

.btn-primary {
  color: white;
  padding: 1rem 2rem;
}

/* Services Grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 5rem;
}

.service-card {
  padding: 2rem;
  text-align: center;
}

.service-icon {
  width: 4rem;
  height: 4rem;
  padding: 1rem;
  border-radius: 50%;
  margin: 0 auto 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-icon svg {
  width: 2rem;
  height: 2rem;
  fill: currentColor;
  stroke: currentColor;
}

.gradient-bg-1 {
  background: linear-gradient(to right, rgba(37, 99, 235, 0.2), rgba(147, 51, 234, 0.2));
  color: rgb(147, 197, 253);
}

.gradient-bg-2 {
  background: linear-gradient(to right, rgba(34, 197, 94, 0.2), rgba(37, 99, 235, 0.2));
  color: rgb(34, 197, 94);
}

.gradient-bg-3 {
  background: linear-gradient(to right, rgba(147, 51, 234, 0.2), rgba(236, 72, 153, 0.2));
  color: rgb(236, 72, 153);
}

.gradient-bg-4 {
  background: linear-gradient(to right, rgba(249, 115, 22, 0.2), rgba(239, 68, 68, 0.2));
  color: rgb(249, 115, 22);
}

.gradient-bg-5 {
  background: linear-gradient(to right, rgba(6, 182, 212, 0.2), rgba(37, 99, 235, 0.2));
  color: rgb(6, 182, 212);
}

.gradient-bg-6 {
  background: linear-gradient(to right, rgba(99, 102, 241, 0.2), rgba(147, 51, 234, 0.2));
  color: rgb(99, 102, 241);
}

.service-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.service-description {
  color: var(--text-secondary);
}

/* Pricing Section */
.pricing-section {
  margin-bottom: 5rem;
}

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

.pricing-description {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-top: 1rem;
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  align-items: stretch;
}

.pricing-card {
  padding: 2.5rem;
  text-align: center;
  position: relative;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.pricing-card:hover {
  transform: translateY(-8px);
}

.pricing-popular {
  border-color: var(--accent-blue);
  box-shadow: 0 20px 60px rgba(59, 130, 246, 0.2);
}

.pricing-popular::before {
  opacity: 1;
}

.popular-badge {
  position: absolute;
  top: -0.5rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gradient-primary);
  color: white;
  padding: 0.5rem 1.5rem;
  border-radius: 2rem;
  font-size: 0.875rem;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
  z-index: 10;
}

.pricing-header-card {
  margin-bottom: 2rem;
}

.pricing-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.pricing-price {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 1.5rem;
}

.price-amount {
  font-size: 3rem;
  font-weight: 700;
  color: var(--accent-blue);
  line-height: 1;
}

.price-period {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-top: 0.5rem;
}

.pricing-features {
  margin-bottom: 2rem;
  flex-grow: 1;
}

.features-list {
  list-style: none;
  padding: 0;
}

.feature-item {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
  padding: 0.5rem 0;
}

.feature-icon {
  width: 1.25rem;
  height: 1.25rem;
  margin-right: 0.75rem;
  color: var(--success-color);
  stroke: var(--success-color);
  flex-shrink: 0;
}

.feature-item span {
  color: var(--text-secondary);
  font-size: 1rem;
}

.pricing-action {
  margin-top: auto;
}

.pricing-btn {
  width: 100%;
  padding: 1rem 2rem;
  border-radius: 0.5rem;
  font-weight: 600;
  font-size: 1.125rem;
  cursor: pointer;
  border: none;
  color: white;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  text-align: center;
  background: var(--gradient-primary);
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.pricing-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
}

.pricing-disabled {
  opacity: 0.6;
  position: relative;
}

.pricing-disabled::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.1);
  border-radius: 1rem;
  pointer-events: none;
}

.pricing-disabled .pricing-btn {
  background: var(--border-color);
  color: var(--text-secondary);
  cursor: not-allowed;
}

.pricing-disabled .pricing-btn:hover {
  transform: none;
  box-shadow: none;
}

.pricing-disabled .price-amount {
  color: var(--text-secondary);
}

.pricing-disabled .feature-icon {
  color: var(--text-secondary);
  stroke: var(--text-secondary);
}

/* Why Choose Us Section */
.why-choose-us {
  padding: 2.5rem;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 2rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 3rem;
}

.feature-column {
  padding: 1.5rem 0;
}

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

.feature-list {
  list-style: none;
  padding: 0;
}

.feature-item {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
  padding: 0.5rem 0;
}

.check-icon {
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1rem;
  font-weight: 700;
  font-size: 0.875rem;
  flex-shrink: 0;
}

.check-icon.green {
  background: rgba(34, 197, 94, 0.2);
  color: rgb(74, 222, 128);
}

.check-icon.blue {
  background: rgba(37, 99, 235, 0.2);
  color: rgb(96, 165, 250);
}

.feature-item span {
  color: var(--text-secondary);
  font-size: 1rem;
}

/* Steps Container */
.steps-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.step {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.step:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--accent-blue);
}

.step-number {
  background: var(--gradient-primary);
  color: white;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.125rem;
  flex-shrink: 0;
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.step-content h3 {
  color: var(--text-primary);
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.step-content p {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.6;
}

/* Features Grid Page */
.features-grid-page {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.feature-card {
  padding: 2rem;
  text-align: center;
}

.feature-card .feature-icon {
  width: 4rem;
  height: 4rem;
  padding: 1rem;
  border-radius: 50%;
  margin: 0 auto 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-card .feature-icon svg {
  width: 2rem;
  height: 2rem;
  fill: currentColor;
  stroke: currentColor;
}

.feature-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.feature-card p {
  color: var(--text-secondary);
  line-height: 1.6;
}

/* FAQ Styles */
.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  margin-bottom: 1rem;
  background: var(--gradient-secondary);
  border: 1px solid var(--border-color);
  border-radius: 0.75rem;
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-item:hover {
  border-color: var(--accent-blue);
}

.faq-question {
  width: 100%;
  padding: 1.5rem;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.125rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.3s ease;
}

.faq-question:hover {
  background: var(--hover-bg);
}

.faq-toggle {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--accent-blue);
  transition: transform 0.4s ease;
  font-size: 1.5rem;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
}

.faq-item.active .faq-toggle {
  transform: rotate(180deg);
}

.faq-answer {
  padding: 0 1.5rem;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease-out, padding 0.5s ease-out;
}

.faq-item.active .faq-answer {
  padding: 0 1.5rem 1.5rem;
}

.faq-answer p {
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Contact Form */
.contact-form {
  max-width: 600px;
  margin: 0 auto;
}

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

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

.form-input,
.form-textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: 0.5rem;
  background: var(--secondary-bg);
  color: var(--text-primary);
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

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

.form-submit {
  width: 100%;
  padding: 1rem;
  margin-top: 1rem;
}

.form-button {
  width: 100%;
  padding: 1rem 2rem;
  border-radius: 0.5rem;
  font-weight: 600;
  font-size: 1.125rem;
  cursor: pointer;
  border: none;
  color: white;
  transition: all 0.3s ease;
  margin-top: 1rem;
}

/* Success Message */
.success-message {
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: var(--success-color);
  padding: 1rem;
  border-radius: 0.5rem;
  margin-top: 1rem;
  text-align: center;
  display: none;
}

.success-message.show {
  display: block;
}

/* Responsive Design */
@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: block;
  }

  .sidebar {
    transform: translateX(-100%);
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .main-container {
    margin-left: 0;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .hero-description {
    font-size: 1.25rem;
  }

  .hero-logo {
    width: 6rem;
    height: 6rem;
  }

  .page-title {
    font-size: 2rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .pricing-card {
    padding: 2rem;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .steps-container {
    grid-template-columns: 1fr;
  }

  .container {
    padding: 0 1rem;
  }

  .main-content {
    padding: 2rem 0;
  }

  .hero-section {
    padding: 4rem 0;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
  }

  .hero-description {
    font-size: 1.125rem;
  }

  .page-title {
    font-size: 1.75rem;
  }

  .section-title {
    font-size: 1.75rem;
  }

  .pricing-card {
    padding: 1.5rem;
  }

  .price-amount {
    font-size: 2.5rem;
  }

  .service-card {
    padding: 1.5rem;
  }

  .why-choose-us {
    padding: 2rem;
  }

  .step {
    padding: 1rem;
  }

  .step-number {
    width: 2rem;
    height: 2rem;
    font-size: 1rem;
  }
}
