/* Custom CSS for Webkonsulent */

/* Article Filter Transitions */
.article-card {
    transition: opacity 0.3s ease, transform 0.3s ease;
    opacity: 1;
    transform: scale(1);
}

.article-card.hidden {
    display: none !important;
}

.filter-btn {
    cursor: pointer;
    transition: all 0.2s ease;
}

body {
    font-family: 'Inter', system-ui, sans-serif;
}

/* ===================================
   ORBIT ANIMATIONS FOR CMS PLATFORMS
   =================================== */

@keyframes orbit-1 {
    0% { 
        top: 0; 
        left: 50%; 
        transform: translate(-50%, 0) scale(1);
    }
    50% { 
        transform: translate(-50%, 0) scale(1.1);
    }
    100% { 
        top: 0; 
        left: 50%; 
        transform: translate(-50%, 0) scale(1);
    }
}

@keyframes orbit-2 {
    0% { 
        top: 25%; 
        right: 0; 
        transform: scale(1);
    }
    50% { 
        transform: scale(1.1);
    }
    100% { 
        top: 25%; 
        right: 0; 
        transform: scale(1);
    }
}

@keyframes orbit-3 {
    0% { 
        bottom: 25%; 
        right: 0; 
        transform: scale(1);
    }
    50% { 
        transform: scale(1.1);
    }
    100% { 
        bottom: 25%; 
        right: 0; 
        transform: scale(1);
    }
}

@keyframes orbit-4 {
    0% { 
        bottom: 0; 
        left: 50%; 
        transform: translate(-50%, 0) scale(1);
    }
    50% { 
        transform: translate(-50%, 0) scale(1.1);
    }
    100% { 
        bottom: 0; 
        left: 50%; 
        transform: translate(-50%, 0) scale(1);
    }
}

@keyframes orbit-5 {
    0% { 
        bottom: 25%; 
        left: 0; 
        transform: scale(1);
    }
    50% { 
        transform: scale(1.1);
    }
    100% { 
        bottom: 25%; 
        left: 0; 
        transform: scale(1);
    }
}

@keyframes orbit-6 {
    0% { 
        top: 25%; 
        left: 0; 
        transform: scale(1);
    }
    50% { 
        transform: scale(1.1);
    }
    100% { 
        top: 25%; 
        left: 0; 
        transform: scale(1);
    }
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 10px 40px rgba(11, 99, 246, 0.3);
    }
    50% {
        box-shadow: 0 20px 60px rgba(11, 99, 246, 0.5);
    }
}

/* ===================================
   HERO BANNER ANIMATIONS
   =================================== */

/* Animated Gradient Background */
@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.hero-animated-bg {
    background: linear-gradient(-45deg, rgba(246, 245, 243, 0.95), rgba(255, 255, 255, 0.95), rgba(235, 244, 255, 0.95), rgba(240, 253, 244, 0.95), rgba(246, 245, 243, 0.95)),
                url('../images/hero-background.jpg');
    background-size: 400% 400%, cover;
    background-position: center center, center center;
    background-repeat: no-repeat;
    animation: gradientShift 15s ease infinite;
}

/* Floating Geometric Shapes */
@keyframes float-slow {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    33% {
        transform: translate(30px, -30px) rotate(120deg);
    }
    66% {
        transform: translate(-20px, 20px) rotate(240deg);
    }
}

@keyframes float-medium {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg) scale(1);
    }
    50% {
        transform: translate(-40px, 40px) rotate(180deg) scale(1.1);
    }
}

@keyframes float-fast {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    25% {
        transform: translate(20px, -40px) rotate(90deg);
    }
    50% {
        transform: translate(-30px, -20px) rotate(180deg);
    }
    75% {
        transform: translate(10px, 30px) rotate(270deg);
    }
}

/* Pulse Glow Effect */
@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(11, 99, 246, 0.3);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 40px rgba(11, 99, 246, 0.5);
        transform: scale(1.05);
    }
}

/* Grid Pattern Animation */
@keyframes gridFade {
    0%, 100% {
        opacity: 0.03;
    }
    50% {
        opacity: 0.08;
    }
}

/* Shimmer Effect */
@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

.text-shimmer {
    background: linear-gradient(90deg, #0B63F6 0%, #22C55E 50%, #0B63F6 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 3s linear infinite;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Sora', system-ui, sans-serif;
}

.btn-transition {
    transition: all 200ms ease-in-out;
}

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

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(11, 99, 246, 0.3);
    }
    50% {
        box-shadow: 0 0 40px rgba(11, 99, 246, 0.6);
    }
}

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

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

/* Hero Gradient Animation */
.hero-gradient {
    background: linear-gradient(135deg, #F6F5F3 0%, #ffffff 50%, #F6F5F3 100%);
    background-size: 200% 200%;
    animation: gradientShift 15s ease infinite;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Card Hover Effects */
.card-hover {
    transition: all 300ms cubic-bezier(0.4, 0, 0.2, 1);
}

.card-hover:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(11, 99, 246, 0.3);
    border-radius: 50%;
    border-top-color: #0B63F6;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Form Focus States */
input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: #0B63F6;
    box-shadow: 0 0 0 3px rgba(11, 99, 246, 0.1);
}

/* Cookie Banner Animation */
#cookie-banner.show {
    transform: translateY(0) !important;
}

/* Dropdown Menu Enhancement */
.dropdown-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.dropdown-menu.show {
    max-height: 500px;
}

/* CMS Logo Grid Animation */
.cms-logo {
    transition: all 300ms ease;
}

.cms-logo:hover {
    transform: scale(1.05);
    filter: brightness(1.1);
}

/* Gradient Text */
.gradient-text {
    background: linear-gradient(135deg, #0B63F6 0%, #22C55E 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Image Lazy Load Blur Effect */
img[loading="lazy"] {
    opacity: 0;
    transition: opacity 0.3s;
}

img[loading="lazy"].loaded {
    opacity: 1;
}

/* Responsive Tables */
@media (max-width: 768px) {
    table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
}

/* Print Styles */
@media print {
    .no-print {
        display: none !important;
    }
}

/* 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 for Keyboard Navigation */
*:focus-visible {
    outline: 2px solid #0B63F6;
    outline-offset: 2px;
}

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

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

::-webkit-scrollbar-thumb {
    background: #0B63F6;
    border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
    background: #0952d4;
}

/* ===================================
   OM OS PAGE ANIMATIONS
   =================================== */

/* 3D Tilt Effect for Value Cards */
.value-card {
    transform-style: preserve-3d;
    transition: transform 0.1s ease-out, box-shadow 0.3s ease;
    will-change: transform;
}

.value-card:hover {
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.value-card-inner {
    transform: translateZ(30px);
    transition: transform 0.3s ease;
}

/* Staggered Fade In Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }

/* Number Counter Animation */
.counter-number {
    display: inline-block;
    transition: all 0.3s ease;
}

.counter-number.counting {
    transform: scale(1.05);
}

/* Timeline Entry Hover Effect */
.timeline-entry {
    transition: all 0.3s ease;
}

.timeline-entry:hover {
    transform: translateX(10px);
    background: rgba(246, 245, 243, 0.5);
    padding-left: 2rem;
    border-radius: 0.5rem;
}

/* Expertise Card Pulse on Hover */
.expertise-card {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.expertise-card::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(11, 99, 246, 0.1) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
    border-radius: 50%;
}

.expertise-card:hover::before {
    width: 300px;
    height: 300px;
}

/* ===================================
   WORKFLOW PROCESS ANIMATION
   =================================== */

.workflow-container {
    padding: 40px 20px;
}

.workflow-step {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.workflow-step.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.workflow-step[data-step="1"].animate-in { transition-delay: 0.2s; }
.workflow-step[data-step="2"].animate-in { transition-delay: 0.4s; }
.workflow-step[data-step="3"].animate-in { transition-delay: 0.6s; }
.workflow-step[data-step="4"].animate-in { transition-delay: 0.8s; }

.workflow-icon-wrapper {
    position: relative;
    width: 80px;
    height: 80px;
}

.workflow-icon {
    position: relative;
    z-index: 2;
}

.workflow-step:hover .workflow-icon {
    transform: scale(1.15) rotate(5deg);
    box-shadow: 0 25px 50px -12px rgba(11, 99, 246, 0.5);
}

/* Pulse effect */
.workflow-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    border-radius: 1rem;
    background: radial-gradient(circle, rgba(11, 99, 246, 0.3) 0%, transparent 70%);
    animation: workflow-pulse 2s ease-out infinite;
    z-index: 1;
}

@keyframes workflow-pulse {
    0% {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.5);
        opacity: 0;
    }
}

.workflow-step[data-step="2"] .workflow-pulse {
    animation-delay: 0.5s;
}

.workflow-step[data-step="3"] .workflow-pulse {
    animation-delay: 1s;
}

.workflow-step[data-step="4"] .workflow-pulse {
    animation-delay: 1.5s;
}

/* Step numbers */
.workflow-number {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #0B63F6, #22C55E);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
    z-index: 3;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Animated path */
.workflow-path {
    transition: stroke-dashoffset 3s ease-in-out;
}

.workflow-path.animate {
    stroke-dashoffset: 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .workflow-container {
        padding: 20px 10px;
    }
    
    .workflow-step {
        margin-bottom: 40px;
    }
}

