/* DNS Jumper Custom Styles - Professional Design */

/* Import Google Fonts for better typography */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* CSS Variables for consistent theming - DNS Jumper Brand Colors */
:root {
  --primary-color: #0066cc;
  --primary-dark: #0052a3;
  --primary-light: #3385d6;
  --secondary-color: #00cc66;
  --secondary-dark: #00a352;
  --secondary-light: #33d685;
  --accent-color: #00aaff;
  --success-color: #00cc66;
  --warning-color: #ff9900;
  --error-color: #ff3333;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1e293b;
  --gray-900: #0f172a;
  --shadow-sm: 0 1px 2px 0 rgba(0, 102, 204, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 102, 204, 0.1), 0 2px 4px -1px rgba(0, 102, 204, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 102, 204, 0.1), 0 4px 6px -2px rgba(0, 102, 204, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 102, 204, 0.1), 0 10px 10px -5px rgba(0, 102, 204, 0.04);
  --border-radius: 12px;
  --border-radius-lg: 16px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base typography improvements */
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  color: var(--gray-800);
  background-color: #ffffff;
}

/* Skip to content link for accessibility */
.skip-to-content {
  position: absolute;
  top: -100px;
  left: 20px;
  background: var(--primary-color);
  color: white;
  padding: 12px 20px;
  text-decoration: none;
  border-radius: 8px;
  z-index: 9999;
  font-size: 16px;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 102, 204, 0.3);
  border: 2px solid transparent;
}

.skip-to-content:focus {
  top: 20px;
  background: var(--primary-dark);
  border-color: white;
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(0, 102, 204, 0.4);
}

.skip-to-content:hover {
  background: var(--primary-dark);
  transform: scale(1.05);
}

/* Smooth scrolling for anchor links */
html {
  scroll-behavior: smooth;
}

/* Fixed Download Button Styles */
.fixed-download-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(0, 102, 204, 0.4);
  }
  50% {
    box-shadow: 0 0 0 10px rgba(0, 102, 204, 0);
  }
}

/* Mobile responsive adjustments for fixed button */
@media (max-width: 768px) {
  .fixed-download-btn {
    bottom: 16px;
    right: 16px;
  }
  
  .fixed-download-btn span {
    display: none;
  }
  
  .fixed-download-btn {
    padding: 12px;
    border-radius: 50%;
  }
}

/* Enhanced Card Styles */
.feature-card, .testimonial-card, .faq-item {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(0, 102, 204, 0.1);
  backdrop-filter: blur(10px);
}

.feature-card:hover, .testimonial-card:hover, .faq-item:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 102, 204, 0.15);
  border-color: rgba(0, 102, 204, 0.2);
}

/* Enhanced Section Backgrounds */
.section-gradient {
  background: linear-gradient(135deg, 
    rgba(0, 102, 204, 0.03) 0%, 
    rgba(0, 204, 102, 0.03) 50%, 
    rgba(0, 102, 204, 0.03) 100%);
  position: relative;
}

.section-gradient::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 20% 80%, rgba(0, 102, 204, 0.05) 0%, transparent 50%),
              radial-gradient(circle at 80% 20%, rgba(0, 204, 102, 0.05) 0%, transparent 50%);
  pointer-events: none;
}

/* Enhanced Typography */
.hero-title {
  background: linear-gradient(135deg, #1e293b 0%, #0066cc 50%, #00cc66 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

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

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

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

.animate-fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

.animate-slide-in-left {
  animation: slideInLeft 0.6s ease-out;
}

.animate-slide-in-right {
  animation: slideInRight 0.6s ease-out;
}

/* Enhanced Grid Layouts */
.feature-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.testimonial-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
}

/* Enhanced Spacing */
.section-padding {
  padding: 5rem 0;
}

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

/* Professional button styles */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 32px;
  border-radius: var(--border-radius-lg);
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 14px 0 rgba(0, 102, 204, 0.25);
  min-width: 180px;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  color: white;
}

.btn-primary::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;
}

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

.btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 25px 0 rgba(0, 102, 204, 0.4);
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 32px;
  border-radius: var(--border-radius-lg);
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 2px solid var(--primary-color);
  background: transparent;
  color: var(--primary-color);
  position: relative;
  overflow: hidden;
  min-width: 180px;
}

.btn-secondary::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background: var(--primary-color);
  transition: width 0.3s ease;
  z-index: -1;
}

.btn-secondary:hover::before {
  width: 100%;
}

.btn-secondary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 25px 0 rgba(0, 102, 204, 0.2);
  color: white;
  border-color: var(--primary-dark);
}

/* Professional navigation styles */
.nav-link {
  position: relative;
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
  color: var(--gray-700);
  border-radius: 8px;
}

.nav-link:hover {
  color: var(--primary-color);
  background-color: var(--gray-50);
}

/* Active navigation state */
.nav-link.active {
  color: var(--primary-color);
  background-color: var(--gray-50);
}

/* Navigation backdrop blur effect */
nav {
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* Logo hover effect */
.logo-container:hover .logo-icon {
  transform: scale(1.1);
}

.logo-icon {
  transition: transform 0.3s ease;
}

/* Professional feature card styles */
.feature-card {
  background: white;
  padding: 2.5rem;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid var(--gray-200);
  position: relative;
  overflow: hidden;
  height: 100%;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

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

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary-light);
}

.feature-icon {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  display: block;
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

/* Professional mobile menu styles */
#menu {
  transition: var(--transition);
}

#menu.hidden {
  display: none;
}

@media (max-width: 768px) {
  #menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    box-shadow: var(--shadow-xl);
    flex-direction: column;
    padding: 1.5rem;
    z-index: 50;
    border-radius: 0 0 var(--border-radius) var(--border-radius);
    border-top: 3px solid var(--primary-color);
  }
  
  #menu li {
    margin: 0.75rem 0;
  }
  
  .nav-link {
    display: block;
    padding: 12px 16px;
    border-radius: var(--border-radius);
    margin: 4px 0;
  }
}

/* Professional section styling */
section {
  position: relative;
}

section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gray-300), transparent);
}

/* Enhanced typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--gray-900);
  margin-bottom: 1rem;
}

h1 {
  font-size: 3.5rem;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-align: center;
  margin-bottom: 1.5rem;
}

h2 {
  font-size: 2.5rem;
  text-align: center;
  position: relative;
  margin-bottom: 3rem;
}

h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
  border-radius: 2px;
}

h3 {
  font-size: 1.5rem;
  color: var(--gray-800);
}

/* Professional card enhancements */
.bg-white {
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--gray-200);
  transition: var(--transition);
}

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

/* Enhanced grid layouts */
.grid {
  gap: 2rem;
}

@media (min-width: 768px) {
  .grid {
    gap: 2.5rem;
  }
}

@media (min-width: 1024px) {
  .grid {
    gap: 3rem;
  }
}

/* Focus styles for accessibility */
*:focus {
  outline: 2px solid #4f46e5;
  outline-offset: 2px;
}

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

::-webkit-scrollbar-track {
  background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Animation for loading states */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.6s ease-out;
}

/* Print styles */
@media print {
  .skip-to-content,
  nav,
  footer,
  .btn-primary,
  .btn-secondary {
    display: none;
  }
  
  body {
    font-size: 12pt;
    line-height: 1.4;
  }
  
  h1, h2, h3 {
    page-break-after: avoid;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .feature-card {
    border: 2px solid #000;
  }
  
  .btn-primary,
  .btn-secondary {
    border: 2px solid #000;
  }
}

/* Animation delays for staggered effects */
.animation-delay-1000 {
  animation-delay: 1s;
}

.animation-delay-2000 {
  animation-delay: 2s;
}

.animation-delay-4000 {
  animation-delay: 4s;
}

/* Enhanced hero section styles */
#hero {
  background-attachment: fixed;
}

#hero .animate-bounce {
  animation: bounce 2s infinite;
}

#hero .animate-pulse {
  animation: pulse 3s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Testimonial card enhancements */
.testimonial-card {
  position: relative;
  overflow: hidden;
}

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

.testimonial-card:hover::before {
  left: 100%;
}

/* Quote styling */
blockquote {
  position: relative;
  font-style: italic;
}

blockquote::before {
  content: '"';
  position: absolute;
  top: -10px;
  left: -10px;
  font-size: 4rem;
  color: var(--primary-color);
  opacity: 0.2;
  font-family: serif;
}

/* Stats section styling */
.stats-card {
  transition: transform 0.3s ease;
}

.stats-card:hover {
  transform: translateY(-5px);
}

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

::-webkit-scrollbar-track {
  background: var(--gray-100);
  border-radius: 4px;
}

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

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-dark);
}

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

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

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  html {
    scroll-behavior: auto;
  }
  
  .animate-bounce,
  .animate-pulse {
    animation: none;
  }
}
