/* ======================================
   PHOENIX POSLOVNI - CUSTOM STYLES
   ====================================== */

:root {
  --primary-blue: #00afe9;
  --primary-orange: #f36b32;
  --dark-blue: #0077b3;
  --light-orange: #ff8c5a;
  --text-dark: #333;
  --text-gray: #666;
  --bg-light: #f8f9fa;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.12);
  --shadow-xl: 0 12px 40px rgba(0,175,233,0.2);
  --transition-fast: 0.3s ease;
  --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ======================================
   UTILITY CLASSES
   ====================================== */

.gradient-text {
  background: linear-gradient(90deg, var(--primary-blue), var(--primary-orange));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.btn-primary-custom {
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--dark-blue) 100%);
  border: none;
  color: white;
  padding: 12px 30px;
  border-radius: 50px;
  font-weight: 600;
  transition: all var(--transition-fast);
  box-shadow: 0 4px 15px rgba(0, 175, 233, 0.3);
}

.btn-primary-custom:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 175, 233, 0.4);
}

.btn-secondary-custom {
  background: linear-gradient(135deg, var(--primary-orange) 0%, var(--light-orange) 100%);
  border: none;
  color: white;
  padding: 12px 30px;
  border-radius: 50px;
  font-weight: 600;
  transition: all var(--transition-fast);
  box-shadow: 0 4px 15px rgba(243, 107, 50, 0.3);
}

.btn-secondary-custom:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(243, 107, 50, 0.4);
}

/* ======================================
   LOADING ANIMATIONS
   ====================================== */

.skeleton-loader {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading 1.5s ease-in-out infinite;
}

@keyframes loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ======================================
   SCROLL EFFECTS
   ====================================== */

.fade-in-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ======================================
   HOVER EFFECTS
   ====================================== */

.hover-lift {
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.hover-lift:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.hover-glow {
  position: relative;
  overflow: hidden;
}

.hover-glow::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.hover-glow:hover::after {
  width: 300px;
  height: 300px;
}

/* ======================================
   CARD ENHANCEMENTS
   ====================================== */

.card-3d {
  perspective: 1000px;
  transition: transform var(--transition-smooth);
}

.card-3d:hover {
  transform: rotateY(5deg) rotateX(5deg);
}

.card-shine {
  position: relative;
  overflow: hidden;
}

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

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

/* ======================================
   ICON ANIMATIONS
   ====================================== */

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

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

.icon-rotate {
  transition: transform var(--transition-fast);
}

.icon-rotate:hover {
  transform: rotate(360deg);
}

.icon-bounce {
  animation: bounce 1s ease-in-out infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* ======================================
   TEXT EFFECTS
   ====================================== */

.text-shadow-soft {
  text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

.text-gradient-animate {
  background: linear-gradient(90deg, var(--primary-blue), var(--primary-orange), var(--primary-blue));
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradient-shift 3s linear infinite;
}

@keyframes gradient-shift {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

/* ======================================
   PROGRESS INDICATORS
   ====================================== */

.progress-bar-custom {
  height: 4px;
  background: linear-gradient(90deg, var(--primary-blue), var(--primary-orange));
  border-radius: 2px;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
  transition: width 0.3s ease;
}

/* ======================================
   FLOATING ELEMENTS
   ====================================== */

.float-animation {
  animation: float 3s ease-in-out infinite;
}

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

/* ======================================
   BADGE STYLES
   ====================================== */

.badge-custom {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.badge-blue {
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--dark-blue) 100%);
  color: white;
}

.badge-orange {
  background: linear-gradient(135deg, var(--primary-orange) 0%, var(--light-orange) 100%);
  color: white;
}

.badge-outline {
  border: 2px solid var(--primary-blue);
  color: var(--primary-blue);
  background: transparent;
}

/* ======================================
   DIVIDER STYLES
   ====================================== */

.divider-gradient {
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--primary-blue), var(--primary-orange), transparent);
  border: none;
  margin: 40px 0;
}

.divider-dots {
  text-align: center;
  margin: 40px 0;
}

.divider-dots::before {
  content: '• • •';
  color: var(--primary-blue);
  font-size: 1.5rem;
  letter-spacing: 10px;
}

/* ======================================
   TOOLTIP CUSTOM
   ====================================== */

.tooltip-custom {
  position: relative;
  cursor: help;
}

.tooltip-custom::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-10px);
  background: var(--text-dark);
  color: white;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 0.85rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-fast), transform var(--transition-fast);
}

.tooltip-custom:hover::after {
  opacity: 1;
  transform: translateX(-50%) translateY(-5px);
}

/* ======================================
   BACKGROUND PATTERNS
   ====================================== */

.bg-pattern-dots {
  background-image: radial-gradient(circle, var(--primary-blue) 1px, transparent 1px);
  background-size: 20px 20px;
  opacity: 0.1;
}

.bg-pattern-grid {
  background-image: 
    linear-gradient(rgba(0, 175, 233, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 175, 233, 0.1) 1px, transparent 1px);
  background-size: 50px 50px;
}

/* ======================================
   SCROLLBAR CUSTOM
   ====================================== */

::-webkit-scrollbar {
  width: 10px;
}

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

::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, var(--primary-blue), var(--primary-orange));
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, var(--dark-blue), var(--primary-orange));
}

/* ======================================
   RESPONSIVE ADJUSTMENTS
   ====================================== */

@media (max-width: 768px) {
  .hide-mobile {
    display: none !important;
  }
  
  .full-width-mobile {
    width: 100% !important;
  }
  
  .text-center-mobile {
    text-align: center !important;
  }
}

@media (min-width: 769px) {
  .hide-desktop {
    display: none !important;
  }
}

/* ======================================
   PRINT STYLES
   ====================================== */

@media print {
  .no-print {
    display: none !important;
  }
  
  body {
    color: black;
    background: white;
  }
}

/* ======================================
   ACCESSIBILITY
   ====================================== */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

.focus-visible:focus {
  outline: 3px solid var(--primary-blue);
  outline-offset: 2px;
}

/* ======================================
   CUSTOM CONTAINERS
   ====================================== */

.container-narrow {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 15px;
}

.container-wide {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 15px;
}

/* ======================================
   OVERLAY EFFECTS
   ====================================== */

.overlay-dark {
  position: relative;
}

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

.overlay-gradient {
  position: relative;
}

.overlay-gradient::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(0, 175, 233, 0.8), rgba(243, 107, 50, 0.8));
  z-index: 1;
}

.overlay-content {
  position: relative;
  z-index: 2;
}

/* ======================================
   FEATURE BOXES
   ====================================== */

.feature-box {
  padding: 30px;
  background: white;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
  text-align: center;
}

.feature-box:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-5px);
}

.feature-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  background: linear-gradient(135deg, var(--primary-blue), var(--primary-orange));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 2rem;
}

/* ======================================
   TIMELINE STYLES
   ====================================== */

.timeline {
  position: relative;
  padding: 20px 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--primary-blue);
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  margin-bottom: 50px;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  width: 20px;
  height: 20px;
  background: var(--primary-orange);
  border: 4px solid white;
  border-radius: 50%;
  transform: translateX(-50%);
  box-shadow: 0 0 0 4px var(--primary-blue);
}

/* ======================================
   STATS COUNTER
   ====================================== */

.stats-box {
  text-align: center;
  padding: 30px;
  background: white;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
}

.stats-number {
  font-size: 3rem;
  font-weight: 700;
  background: linear-gradient(90deg, var(--primary-blue), var(--primary-orange));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stats-label {
  font-size: 1.1rem;
  color: var(--text-gray);
  margin-top: 10px;
}

/* ======================================
   PRICING TABLES
   ====================================== */

.pricing-card {
  background: white;
  border-radius: 16px;
  padding: 40px;
  box-shadow: var(--shadow-md);
  text-align: center;
  transition: all var(--transition-fast);
}

.pricing-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-xl);
}

.pricing-card.featured {
  border: 3px solid var(--primary-blue);
  transform: scale(1.05);
}

.pricing-price {
  font-size: 3rem;
  font-weight: 700;
  color: var(--primary-blue);
  margin: 20px 0;
}

.pricing-features {
  list-style: none;
  padding: 0;
  margin: 30px 0;
}

.pricing-features li {
  padding: 10px 0;
  border-bottom: 1px solid #eee;
}

.pricing-features li:last-child {
  border-bottom: none;
}