/* Custom Styles for Proxy Service Website */

/* Global Variables */
:root {
  --primary-color: #4f46e5;
  --primary-hover: #4338ca;
  --secondary-color: #7c3aed;
  --secondary-hover: #6d28d9;
  --success-color: #10b981;
  --info-color: #06b6d4;
  --warning-color: #f59e0b;
  --danger-color: #ef4444;
  --light-color: #f9fafb;
  --dark-color: #111827;
  --transition-speed: 0.3s;
  --box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --hover-transform: translateY(-5px);
  --border-radius: 0.75rem;
  --gradient-primary: linear-gradient(90deg, #4678e5, #3a88ed);
}

/* Dark Mode Styles */
body.dark-mode {
  background-color: #1f2937;
  color: #e5e7eb;
}

body.dark-mode .navbar,
body.dark-mode .card,
body.dark-mode .stats-container,
body.dark-mode .accordion-item,
body.dark-mode .comparison-table {
  background-color: #374151 !important;
  color: #e5e7eb;
}

body.dark-mode .navbar-light .navbar-nav .nav-link,
body.dark-mode .card-title,
body.dark-mode .card-text,
body.dark-mode .lead,
body.dark-mode h1,
body.dark-mode h2,
body.dark-mode h3,
body.dark-mode h4,
body.dark-mode h5,
body.dark-mode h6,
body.dark-mode .accordion-button,
body.dark-mode .accordion-body {
  color: #e5e7eb;
}

body.dark-mode .bg-light {
  background-color: #111827 !important;
}

body.dark-mode .text-muted {
  color: #9ca3af !important;
}

body.dark-mode .navbar-scrolled {
  background-color: rgba(55, 65, 81, 0.95) !important;
}

body.dark-mode .accordion-button::after {
  filter: invert(1);
}

body.dark-mode .accordion-button:not(.collapsed) {
  background-color: #4f46e5;
  color: white;
}

body.dark-mode .comparison-table th,
body.dark-mode .comparison-table td {
  border-color: #4b5563;
}

body.dark-mode .comparison-table thead th {
  background: linear-gradient(90deg, #111827, #1f2937);
}

body.dark-mode .popular-column {
  background-color: rgba(79, 70, 229, 0.2);
}

body.dark-mode .btn-outline-primary {
  color: #818cf8;
  border-color: #818cf8;
}

body.dark-mode .btn-outline-primary:hover {
  background-color: #4f46e5;
  color: white;
}

body.dark-mode .btn-outline-secondary {
  color: #a5b4fc;
  border-color: #a5b4fc;
}

body.dark-mode .btn-outline-secondary:hover {
  background-color: #6d28d9;
  color: white;
}

body.dark-mode .footer {
  background: linear-gradient(135deg, #111827, #1f2937);
}

/* Enhanced Animation Styles */
.slide-in-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.slide-in-right {
  opacity: 0;
  transform: translateX(50px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.zoom-in {
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.slide-in-left.visible,
.slide-in-right.visible,
.zoom-in.visible {
  opacity: 1;
  transform: translateX(0) scale(1);
}

/* Enhanced Hero Section */
.hero-section {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  padding: 80px 0;
}

.hero-shape-1,
.hero-shape-2,
.hero-shape-3 {
  position: absolute;
  border-radius: 50%;
  z-index: 0;
}

.hero-shape-1 {
  top: -100px;
  right: -100px;
  width: 300px;
  height: 300px;
  background: linear-gradient(45deg, rgba(79, 70, 229, 0.1), rgba(124, 58, 237, 0.1));
  animation: float 8s ease-in-out infinite;
}

.hero-shape-2 {
  bottom: -150px;
  left: -50px;
  width: 250px;
  height: 250px;
  background: linear-gradient(45deg, rgba(124, 58, 237, 0.1), rgba(79, 70, 229, 0.1));
  animation: float 10s ease-in-out infinite reverse;
}

.hero-shape-3 {
  top: 40%;
  left: 20%;
  width: 150px;
  height: 150px;
  background: linear-gradient(45deg, rgba(79, 70, 229, 0.05), rgba(124, 58, 237, 0.05));
  animation: float 12s ease-in-out infinite;
}

.hero-image-container {
  position: relative;
  padding: 20px;
}

.hero-image {
  position: relative;
  z-index: 2;
  animation: float 6s ease-in-out infinite;
  filter: drop-shadow(0 10px 15px rgba(0, 0, 0, 0.1));
}

.hero-floating-icon {
  position: absolute;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #4f46e5;
  z-index: 3;
}

.hero-icon-1 {
  top: 20%;
  left: 0;
  animation: float 5s ease-in-out infinite;
}

.hero-icon-2 {
  top: 60%;
  right: 10%;
  animation: float 7s ease-in-out infinite;
}

.hero-icon-3 {
  bottom: 10%;
  left: 20%;
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-15px);
  }
  100% {
    transform: translateY(0px);
  }
}

/* Enhanced Stats Section */
.stats-container {
  margin-top: -50px;
  position: relative;
  z-index: 10;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  border-radius: var(--border-radius);
}

.stat-item {
  padding: 20px;
  transition: all var(--transition-speed);
}

.stat-item:hover {
  transform: translateY(-10px);
}

.stat-icon-container {
  width: 80px;
  height: 80px;
  background: linear-gradient(45deg, rgba(79, 70, 229, 0.1), rgba(124, 58, 237, 0.1));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  transition: all var(--transition-speed);
}

.stat-item:hover .stat-icon-container {
  transform: scale(1.1) rotate(10deg);
}

.stat-icon {
  font-size: 32px;
  background: linear-gradient(90deg, #4f46e5, #7c3aed);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Enhanced Feature Cards */
.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 4rem;
  height: 4rem;
  font-size: 2rem;
  border-radius: 0.75rem;
  background: linear-gradient(90deg, #4f46e5, #7c3aed);
  color: white;
  transition: all var(--transition-speed);
  box-shadow: 0 10px 15px rgba(79, 70, 229, 0.2);
}

.card:hover .feature-icon {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 15px 20px rgba(79, 70, 229, 0.3);
}

/* Enhanced Comparison Table */
.comparison-table {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.comparison-table th,
.comparison-table td {
  padding: 15px;
  vertical-align: middle;
  transition: all 0.3s ease;
}

.comparison-table thead th {
  background: linear-gradient(90deg, #f8f9fa, #e9ecef);
  border-bottom: none;
}

.popular-column {
  background-color: rgba(79, 70, 229, 0.05);
  position: relative;
}

.comparison-table tr:hover {
  background-color: rgba(79, 70, 229, 0.02);
}

.comparison-table tr:hover td {
  transform: translateY(-2px);
}

/* Enhanced CTA Section */
.cta-section .card {
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  z-index: 1;
}

.cta-section .card:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.03), rgba(124, 58, 237, 0.03));
  z-index: -1;
}

/* Responsive Improvements */
@media (max-width: 992px) {
  .hero-section {
    padding: 60px 0;
  }

  .hero-shape-1,
  .hero-shape-2,
  .hero-shape-3 {
    width: 200px;
    height: 200px;
  }

  .stats-container {
    margin-top: 20px;
  }

  .stat-icon-container {
    width: 60px;
    height: 60px;
  }

  .stat-icon {
    font-size: 24px;
  }
}

@media (max-width: 768px) {
  .hero-section {
    padding: 40px 0;
  }

  .hero-shape-1,
  .hero-shape-2,
  .hero-shape-3 {
    width: 150px;
    height: 150px;
  }

  .hero-floating-icon {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }

  .display-4 {
    font-size: 2.5rem;
  }

  .display-5 {
    font-size: 2rem;
  }

  .feature-icon {
    width: 3rem;
    height: 3rem;
    font-size: 1.5rem;
  }
}

/* Image Loading Improvements */
img.loaded {
  animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Badge Gradient */
.bg-gradient {
  background: linear-gradient(90deg, #2c22ee, #463aed);
  color: rgb(13, 0, 196);
}

/* Text Gradient */
.text-gradient {
  background: linear-gradient(90deg, #0055b8, #60b5ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Button Gradient */
.btn-gradient {
  background: linear-gradient(90deg, #0055b8, #60b5ff);
  border: none;
  color: white;
  position: relative;
  z-index: 1;
  overflow: hidden;
  transition: all 0.3s ease;
}

.btn-gradient:hover {
  color: white;
  box-shadow: 0 10px 20px rgba(79, 70, 229, 0.3);
}

.btn-gradient:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, #0055b8, #60b5ff);
  transition: all 0.3s ease;
  z-index: -1;
}

.btn-gradient:hover:before {
  width: 100%;
}
