/* PT. Berkah Kita Sukses - Custom CSS */

/* Custom Properties */
:root {
  --color-primary: #002f6c;
  --color-secondary: #fcbf49;
  --color-accent: #f77f00;
  --color-light: #f5f5f5;
  
  /* Animation durations */
  --duration-fast: 0.3s;
  --duration-normal: 0.5s;
  --duration-slow: 1s;
}

/* Dark mode variables */
.dark {
  --text-light: #ffffff;
  --text-dark: #1e293b;
  --bg-light: #0f172a;
  --bg-dark: #ffffff;
}

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

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

@keyframes shield-rotate {
  0% {
    transform: rotate(0deg) scale(1);
  }
  25% {
    transform: rotate(90deg) scale(1.1);
  }
  50% {
    transform: rotate(180deg) scale(1);
  }
  75% {
    transform: rotate(270deg) scale(1.1);
  }
  100% {
    transform: rotate(360deg) scale(1);
  }
}

@keyframes shield-pulse {
  0%, 100% {
    opacity: 0.2;
    transform: scale(1);
  }
  50% {
    opacity: 0.8;
    transform: scale(1.3);
  }
}

@keyframes pulse-glow {
  0%, 100% {
    box-shadow: 0 0 20px rgba(252, 191, 73, 0.2);
  }
  50% {
    box-shadow: 0 0 40px rgba(252, 191, 73, 0.4);
  }
}

/* Custom utility classes */
.animate-float {
  animation: float 6s ease-in-out infinite;
}

.animate-shield-rotate {
  animation: shield-rotate 20s linear infinite;
}

.animate-shield-pulse {
  animation: shield-pulse 4s ease-in-out infinite;
}

.animate-pulse-glow {
  animation: pulse-glow 3s ease-in-out infinite;
}

/* Glass morphism effect */
.glass-morphism {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.dark .glass-morphism {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Shield glow effect */
.shield-glow {
  position: relative;
}

.shield-glow::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, var(--color-secondary), var(--color-accent), var(--color-primary));
  border-radius: inherit;
  z-index: -1;
  opacity: 0.3;
  filter: blur(10px);
  animation: pulse-glow 4s ease-in-out infinite;
}

/* Futuristic button styling */
.btn-futuristic {
  position: relative;
  overflow: hidden;
  background: linear-gradient(45deg, var(--color-secondary), var(--color-accent));
  transition: all 0.3s ease;
}

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

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

.btn-futuristic:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(252, 191, 73, 0.4);
}

/* Navigation link hover effect */
.nav-link {
  position: relative;
  transition: color 0.3s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background: linear-gradient(90deg, var(--color-secondary), var(--color-accent));
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

/* Security grid pattern */
.security-grid {
  background-image: 
    radial-gradient(circle at 25px 25px, rgba(255, 255, 255, 0.1) 2px, transparent 0),
    radial-gradient(circle at 75px 75px, rgba(252, 191, 73, 0.1) 1px, transparent 0);
  background-size: 100px 100px, 50px 50px;
  background-position: 0 0, 25px 25px;
}

/* Hexagon shape utility */
.hexagon {
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}

/* Card hover effects */
.card-hover {
  transition: all 0.3s ease;
}

.card-hover:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 47, 108, 0.15);
}

.dark .card-hover:hover {
  box-shadow: 0 20px 40px rgba(252, 191, 73, 0.15);
}

/* Scroll indicators */
.scroll-indicator {
  position: relative;
  animation: bounce 2s infinite;
}

/* Form styling enhancements */
.form-input {
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.form-input:focus {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--color-secondary);
  box-shadow: 0 0 0 3px rgba(252, 191, 73, 0.1);
}

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

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

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--color-secondary), var(--color-accent));
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, var(--color-accent), var(--color-secondary));
}

/* Dark mode scrollbar */
.dark ::-webkit-scrollbar-track {
  background: #1e293b;
}

/* Loading states */
.loading {
  position: relative;
  overflow: hidden;
}

.loading::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  animation: loading-shimmer 1.5s infinite;
}

@keyframes loading-shimmer {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .animate-float {
    animation-duration: 4s;
  }
  
  .shield-glow::before {
    filter: blur(5px);
  }
}

/* Print styles */
@media print {
  .animate-float,
  .animate-shield-rotate,
  .animate-shield-pulse,
  .animate-pulse-glow {
    animation: none !important;
  }
  
  .glass-morphism {
    background: white !important;
    border: 1px solid #ddd !important;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .glass-morphism {
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid #000;
  }
  
  .btn-futuristic {
    border: 2px solid #000;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  .animate-float,
  .animate-shield-rotate,
  .animate-shield-pulse,
  .animate-pulse-glow {
    animation: none !important;
  }
  
  .scroll-indicator {
    animation: none !important;
  }
  
  * {
    transition: none !important;
  }
}