/* ============================================
   DCB BILLING - Custom Styles
   ============================================ */

/* Variables CSS */
:root {
  --color-primary: #000000;
  --color-secondary: #ffffff;
  --color-darkbg: #1a1a1a;
  --color-text-gray: #666666;
}

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

/* Body Padding for Fixed Header */
body {
  padding-top: 80px;
}

/* Parallax Background */
.parallax-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: -1;
}

@media (max-width: 768px) {
  .parallax-bg {
    position: absolute;
  }
}

/* Header Sticky con Transition */
#main-header {
  transition: all 0.3s ease;
}

/* Cards Hover Effect */
.content-card {
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease;
  cursor: pointer;
}

.content-card:hover {
  transform: translateY(-8px);
}

.content-card img {
  transition: transform 0.3s ease;
}

.content-card:hover img {
  transform: scale(1.1);
}

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

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

/* Bounce Animation para scroll indicator */
@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

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

/* Language Selector */
.language-selector {
  position: relative;
}

#lang-menu {
  position: absolute;
  right: 0;
  margin-top: 8px;
  min-width: 180px;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  z-index: 100;
}

#lang-menu button {
  transition: background-color 0.2s ease;
}

#lang-menu button:hover {
  background-color: #f3f4f6;
}

/* Mobile Menu */
#mobile-menu {
  transition: all 0.3s ease;
}

/* Hero Section Adjustments */
#home {
  margin-top: -80px;
}

/* Features Section with Dark Background */
.bg-darkbg {
  background-color: var(--color-darkbg);
}

/* Responsive Typography */
@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.75rem;
  }
  
  body {
    padding-top: 70px;
  }
}

/* Loader Animation (opcional) */
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.loader {
  border: 4px solid #f3f3f3;
  border-top: 4px solid var(--color-primary);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
}

/* Utility Classes */
.text-shadow {
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.bg-overlay {
  position: relative;
}

.bg-overlay::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1;
}

.bg-overlay > * {
  position: relative;
  z-index: 2;
}

/* Print Styles */
@media print {
  .no-print {
    display: none !important;
  }
  
  body {
    padding-top: 0;
  }
  
  #main-header {
    position: static;
  }
}
