/* Modern AdProxy Styles */

/* CSS Variables for Modern Design */
:root {
  --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  --success-gradient: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  --dark-gradient: linear-gradient(135deg, #2c3e50 0%, #3498db 100%);

  --primary-color: #667eea;
  --secondary-color: #764ba2;
  --success-color: #00f2fe;
  --warning-color: #ff9500;
  --danger-color: #f5576c;

  --text-primary: #2d3748;
  --text-secondary: #718096;
  --text-muted: #a0aec0;

  --bg-primary: #ffffff;
  --bg-secondary: #f7fafc;
  --bg-tertiary: #edf2f7;

  --border-radius-sm: 0.5rem;
  --border-radius-md: 0.75rem;
  --border-radius-lg: 1rem;
  --border-radius-xl: 1.5rem;

  --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  --shadow-md: 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);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

  --transition-fast: all 0.15s ease;
  --transition-normal: all 0.3s ease;
  --transition-slow: all 0.5s ease;
}

/* Global Styles */
* {
  box-sizing: border-box;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--text-primary);
  line-height: 1.7;
  font-weight: 400;
  background-color: var(--bg-primary);
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
}
h2 {
  font-size: clamp(2rem, 4vw, 3rem);
}
h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
}

p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  line-height: 1.7;
}

.lead {
  font-size: 1.25rem;
  font-weight: 400;
  opacity: 0.9;
}

/* Modern Button Styles */
.btn {
  font-weight: 600;
  letter-spacing: 0.025em;
  border-radius: var(--border-radius-md);
  padding: 0.875rem 2rem;
  border: none;
  position: relative;
  overflow: hidden;
  transition: var(--transition-normal);
  text-transform: none;
  font-size: 0.95rem;
}

.btn::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: var(--transition-normal);
}

.btn:hover::before {
  left: 100%;
}

.btn-primary {
  background: var(--primary-gradient);
  color: white;
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  color: white;
}

.btn-success {
  background: var(--success-gradient);
  color: white;
  box-shadow: var(--shadow-md);
}

.btn-success:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  color: white;
}

.btn-outline-light {
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: white;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
  color: white;
  transform: translateY(-1px);
}

.btn-lg {
  padding: 1.125rem 2.5rem;
  font-size: 1.1rem;
  border-radius: var(--border-radius-lg);
}

/* Header Styles */
.header {
  position: absolute;
  width: 100%;
  z-index: 1000;
  padding: 1.5rem 0;
  transition: var(--transition-normal);
}

.header.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow-sm);
  padding: 1rem 0;
}

.header.scrolled .navbar-nav .nav-link {
  color: var(--text-primary);
}

.header.scrolled .logo-text {
  color: var(--text-primary);
}

.logo-text {
  font-size: 1.75rem;
  font-weight: 800;
  color: white;
  letter-spacing: -0.05em;
}

.navbar-nav .nav-link {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
  padding: 0.75rem 1.25rem;
  border-radius: var(--border-radius-sm);
  transition: var(--transition-fast);
  font-size: 0.9rem;
  letter-spacing: 0.025em;
}

.navbar-nav .nav-link:hover {
  color: white;
  background: rgba(255, 255, 255, 0.1);
}

/* Hero Section */
.hero-section {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
  padding: 8rem 0 6rem;
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.hero-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  animation: float 20s ease-in-out infinite;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
}

.hero-section .container {
  position: relative;
  z-index: 2;
}

.hero-section h1 {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1.5rem;
  animation: fadeInUp 1s ease-out;
}

.hero-section .lead {
  animation: fadeInUp 1s ease-out 0.2s both;
}

.hero-section .btn {
  animation: fadeInUp 1s ease-out 0.4s both;
}

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

.wave-container {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
}

.wave-container svg {
  position: relative;
  display: block;
  width: calc(100% + 1.3px);
  height: 80px;
}

/* Modern Card Styles */
.card {
  border: none;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
  background: var(--bg-primary);
  overflow: hidden;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}

.card-body {
  padding: 2rem;
}

/* Comparison Section */
.comparison-section {
  padding: 6rem 0;
  background: var(--bg-secondary);
}

.vs-badge {
  background: var(--primary-gradient);
  color: white;
  font-size: 1.5rem;
  font-weight: 700;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  box-shadow: var(--shadow-lg);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

.feature-list li {
  padding: 1rem 0;
  border-bottom: 1px solid var(--bg-tertiary);
  display: flex;
  align-items: center;
  font-weight: 500;
}

.feature-list li:last-child {
  border-bottom: none;
}

.highlight-card {
  border: 2px solid transparent;
  background: linear-gradient(white, white) padding-box, var(--success-gradient) border-box;
  position: relative;
}

.highlight-card::before {
  content: "RECOMMENDED";
  position: absolute;
  top: -1px;
  right: 2rem;
  background: var(--success-gradient);
  color: white;
  padding: 0.5rem 1rem;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 0 0 var(--border-radius-sm) var(--border-radius-sm);
  letter-spacing: 0.05em;
}

/* Features Section */
.features-section {
  padding: 6rem 0;
  background: var(--bg-primary);
}

.feature-icon {
  width: 80px;
  height: 80px;
  background: var(--primary-gradient);
  border-radius: var(--border-radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  box-shadow: var(--shadow-lg);
  transition: var(--transition-normal);
}

.feature-icon:hover {
  transform: scale(1.1) rotate(5deg);
}

.feature-icon i {
  font-size: 2rem;
  color: white;
}

/* Infrastructure Section */
.infrastructure-section {
  padding: 6rem 0;
  background: var(--bg-secondary);
}

.infrastructure-map {
  border-radius: var(--border-radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  position: relative;
}

.infrastructure-map::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
  z-index: 1;
}

/* CTA Section */
.cta-section {
  background: var(--dark-gradient);
  padding: 6rem 0;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M20 20c0 11.046-8.954 20-20 20s-20-8.954-20-20 8.954-20 20-20 20 8.954 20 20zm0-20c11.046 0 20 8.954 20 20s-8.954 20-20 20-20-8.954-20-20 8.954-20 20-20z'/%3E%3C/g%3E%3C/svg%3E");
}

/* Pricing Section */
.pricing-section {
  padding: 6rem 0;
  background: var(--bg-primary);
}

.pricing-card {
  border-radius: var(--border-radius-xl);
  overflow: hidden;
  position: relative;
  background: white;
  border: 2px solid var(--bg-tertiary);
  transition: var(--transition-normal);
}

.pricing-card:hover {
  border-color: var(--primary-color);
  transform: translateY(-10px) scale(1.02);
}

.price-value {
  font-size: 3rem;
  font-weight: 800;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

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

.pricing-features li {
  padding: 1rem 0;
  border-bottom: 1px solid var(--bg-tertiary);
  font-weight: 500;
}

.pricing-features li:last-child {
  border-bottom: none;
}

/* Testimonials Section */
.testimonials-section {
  padding: 6rem 0;
  background: var(--bg-secondary);
}

.testimonial-card {
  border-radius: var(--border-radius-xl);
  border: none;
  background: white;
  position: relative;
  overflow: hidden;
}

.testimonial-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--primary-gradient);
}

.testimonial-text {
  font-style: italic;
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--text-secondary);
  position: relative;
  margin-bottom: 2rem;
}

.testimonial-text::before {
  content: '"';
  font-size: 4rem;
  color: var(--primary-color);
  opacity: 0.2;
  position: absolute;
  top: -1rem;
  left: -0.5rem;
  font-family: Georgia, serif;
}

.avatar img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border: 3px solid var(--bg-tertiary);
}

.rating i {
  color: #fbbf24;
  font-size: 1.1rem;
}

/* FAQ Section */
.faq-section {
  padding: 6rem 0;
  background: var(--bg-primary);
}

.accordion-item {
  border: 2px solid var(--bg-tertiary);
  border-radius: var(--border-radius-lg);
  margin-bottom: 1rem;
  overflow: hidden;
}

.accordion-button {
  background: white;
  border: none;
  padding: 1.5rem 2rem;
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--text-primary);
}

.accordion-button:not(.collapsed) {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
  color: var(--primary-color);
  box-shadow: none;
}

.accordion-button:focus {
  box-shadow: none;
  border: none;
}

.accordion-body {
  padding: 1.5rem 2rem 2rem;
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.7;
}

/* Footer */
.footer {
  background: linear-gradient(135deg, #1a202c 0%, #2d3748 100%);
  padding: 4rem 0 2rem;
  position: relative;
}

.footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
}

.footer h5 {
  color: white;
  font-weight: 700;
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
  letter-spacing: 0.05em;
}

.footer a {
  color: rgba(255, 255, 255, 0.7);
  transition: var(--transition-fast);
  font-weight: 500;
}

.footer a:hover {
  color: white;
  transform: translateX(4px);
}

.social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  margin-right: 0.75rem;
  transition: var(--transition-normal);
}

.social-icons a:hover {
  background: var(--primary-gradient);
  transform: translateY(-2px);
}

/* Utility Classes */
.text-gradient {
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.bg-gradient {
  background: var(--primary-gradient);
}

/* Responsive Design */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    padding: 1.5rem;
    border-radius: var(--border-radius-lg);
    margin-top: 1rem;
    box-shadow: var(--shadow-lg);
  }

  .navbar-collapse .nav-link {
    color: var(--text-primary);
  }

  .vs-badge {
    margin: 3rem auto;
  }

  .hero-section {
    padding: 6rem 0 4rem;
    min-height: 80vh;
  }
}

@media (max-width: 767.98px) {
  .hero-section {
    padding: 5rem 0 4rem;
  }

  .card-body {
    padding: 1.5rem;
  }

  .feature-icon {
    width: 70px;
    height: 70px;
  }

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

@media (max-width: 575.98px) {
  .hero-section {
    padding: 4rem 0 3rem;
  }

  .btn-lg {
    padding: 1rem 2rem;
    font-size: 1rem;
  }

  .testimonial-text::before {
    font-size: 3rem;
    top: -0.5rem;
  }
}

/* Loading Animation */
@keyframes shimmer {
  0% {
    background-position: -200px 0;
  }
  100% {
    background-position: calc(200px + 100%) 0;
  }
}

.loading {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200px 100%;
  animation: shimmer 1.5s infinite;
}

/* Scroll Animations */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: var(--transition-slow);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-tertiary);
}

::-webkit-scrollbar-thumb {
  background: var(--primary-gradient);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--secondary-gradient);
}
