/* Enhanced CSS for Linkub Indonesia */

/* Focus Outline */
a:focus-visible {
  outline: 2px dashed #1d4ed8;
  outline-offset: 4px;
}

/* Background Patterns & Gradients */
main > section:nth-of-type(even):not([class*="bg-"]):not([data-hero]) {
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 50%, #bfdbfe 100%);
  position: relative;
}

main > section:nth-of-type(even):not([class*="bg-"]):not([data-hero])::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    radial-gradient(circle at 20% 50%, rgba(59, 130, 246, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(37, 99, 235, 0.05) 0%, transparent 50%);
  pointer-events: none;
}

main > section:nth-of-type(odd):not([class*="bg-"]):not([data-hero]) {
  background: linear-gradient(135deg, #bfdbfe 0%, #dbeafe 50%, #eff6ff 100%);
  position: relative;
}

main > section:nth-of-type(odd):not([class*="bg-"]):not([data-hero])::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    radial-gradient(circle at 30% 20%, rgba(96, 165, 250, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 70% 80%, rgba(59, 130, 246, 0.05) 0%, transparent 50%);
  pointer-events: none;
}

/* Enhanced Hero Section */
[data-hero] {
  position: relative;
  overflow: hidden;
}

[data-hero]::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    radial-gradient(circle at 15% 15%, rgba(255, 255, 255, 0.1) 0%, transparent 40%),
    radial-gradient(circle at 85% 85%, rgba(255, 255, 255, 0.1) 0%, transparent 40%);
  pointer-events: none;
}

/* Icon Animations */
i[data-lucide],
.icon {
  transition: transform 0.3s ease, color 0.3s ease;
  display: inline-block;
}

i[data-lucide]:hover,
.icon:hover {
  transform: scale(1.15) rotate(5deg);
  color: #2563eb;
}

/* Enhanced Card Styles */
.card-enhanced {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.card-enhanced::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #3b82f6 0%, #2563eb 100%);
}

.card-enhanced:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  border-color: #3b82f6;
}

/* Button Enhancements */
.btn-cta {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.btn-cta::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn-cta:hover::before {
  width: 300px;
  height: 300px;
}

.btn-cta:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.2);
}

/* Social Icons */
.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: white;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.social-icon:hover {
  transform: translateY(-4px) scale(1.1);
  box-shadow: 0 6px 12px rgba(59, 130, 246, 0.4);
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
}

/* Decorative Elements */
.decorative-shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.1;
  pointer-events: none;
}

/* Enhanced List Items */
ul li::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  border-radius: 50%;
  margin-right: 8px;
}

.no-bullet li::before {
  content: none;
  display: none;
  margin-right: 0;
}

@media (max-width: 768px) {
  body:not(.home) [data-hero] {
    margin-top: 5.5rem;
  }
}

/* Badge Styles */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  border: 1px solid #3b82f6;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 600;
  color: #1e40af;
  transition: all 0.3s ease;
}

.badge:hover {
  background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
  transform: scale(1.05);
}

/* Section Headers with Icons */
.section-header {
  position: relative;
  padding-bottom: 12px;
  margin-bottom: 24px;
}

.section-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, #3b82f6 0%, #2563eb 100%);
  border-radius: 2px;
}

/* Loading Animation for Icons */
@keyframes pulse-icon {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.icon-pulse {
  animation: pulse-icon 2s ease-in-out infinite;
}

/* Gradient Text */
.gradient-text {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 50%, #1e40af 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Enhanced Footer */
footer {
  position: relative;
  background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
}

footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #3b82f6 0%, #2563eb 50%, #3b82f6 100%);
}

/* Responsive Enhancements */
@media (max-width: 768px) {
  .social-icon {
    width: 36px;
    height: 36px;
  }
  
  .card-enhanced {
    margin-bottom: 16px;
  }
}

/* Smooth Transitions */
* {
  scroll-behavior: smooth;
}

/* Enhanced Border Styles */
.border-enhanced {
  border: 2px solid transparent;
  background: linear-gradient(white, white) padding-box,
              linear-gradient(135deg, #3b82f6, #2563eb) border-box;
  border-radius: 12px;
}