/* Custom Styles for VERITAS DATA GmbH */

/* Local Inter Font */
@font-face {
    font-family: 'Inter';
    src: url('../fonts/Inter-VariableFont.woff2') format('woff2');
    font-weight: 100 900;
    font-display: swap;
    font-style: normal;
}

/* Missing Tailwind Utilities for Sticky Footer */
.min-h-screen {
    min-height: 100vh;
}

.flex-col {
    flex-direction: column;
}

.flex-grow {
    flex-grow: 1;
}

/* Animations */
@keyframes fade-in {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

.animate-fade-in {
    animation: fade-in 0.8s ease-out;
}

.animate-fade-in-delay {
    animation: fade-in 1s ease-out 0.2s both;
}

.animate-fade-in-delay-2 {
    animation: fade-in 1.2s ease-out 0.4s both;
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #0a192f;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #112240;
}

/* Glassmorphism Effect */
.glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Hover Effects */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 217, 255, 0.2);
}

/* Gradient Text */
.gradient-text {
    background: linear-gradient(135deg, #00d9ff 0%, #00e5e5 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Network Pattern Background */
.network-pattern {
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(0, 217, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(0, 229, 229, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(0, 217, 255, 0.05) 0%, transparent 50%);
}

/* Card Hover Effect */
.card-hover {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-hover:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Loading Animation */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Focus Visible - WCAG 2.1 AA Compliant */
*:focus-visible {
    outline: 3px solid #00d9ff;
    outline-offset: 2px;
    outline-style: solid;
}

/* Ensure focus is visible for keyboard navigation */
a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 3px solid #00d9ff;
    outline-offset: 2px;
}

/* Skip link styling */
.skip-to-content:focus {
    position: absolute;
    top: 1rem;
    left: 1rem;
    z-index: 9999;
    padding: 0.75rem 1.5rem;
    background-color: #00d9ff;
    color: #ffffff;
    text-decoration: none;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Screen Reader Only */
.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;
}

.sr-only.focus\:not-sr-only:focus {
    position: static;
    width: auto;
    height: auto;
    padding: inherit;
    margin: inherit;
    overflow: visible;
    clip: auto;
    white-space: normal;
}

/* Lazy Loading Images */
img[loading="lazy"] {
    opacity: 0;
    transition: opacity 0.3s;
}

img[loading="lazy"].loaded {
    opacity: 1;
}

/* Subtle Float Animation (slower) */
@keyframes float-subtle {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-8px);
    }
}

.animate-float {
    animation: float-subtle 6s ease-in-out infinite;
}

/* Print Styles */
@media print {
    nav, footer, #back-to-top {
        display: none;
    }
}

/* Legal Pages Styling */
.legal-content h2 {
    font-size: 1.875rem;
    font-weight: 700;
    color: #0a192f;
    margin-bottom: 1rem;
    margin-top: 3rem;
}

.legal-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #0a192f;
    margin-bottom: 0.75rem;
    margin-top: 2rem;
}

.legal-content p {
    color: #374151;
    line-height: 1.75;
    margin-bottom: 1rem;
}

.legal-content ul {
    list-style-type: disc;
    list-style-position: inside;
    color: #374151;
    margin-bottom: 1.5rem;
    margin-left: 1rem;
}

.legal-content ol {
    list-style-type: decimal;
    list-style-position: inside;
    color: #374151;
    margin-bottom: 1.5rem;
    margin-left: 1rem;
}

.legal-content li {
    margin-bottom: 0.5rem;
}

.legal-content a {
    color: #00d9ff;
    text-decoration: underline;
}

.legal-content a:hover {
    color: #00e5e5;
}

.legal-content strong {
    font-weight: 600;
    color: #0a192f;
}

/* Gradient Animation */
@keyframes gradient {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

.animate-gradient {
    animation: gradient 3s ease infinite;
    background-size: 200% auto;
}

/* Shimmer Animation */
@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

.animate-shimmer {
    animation: shimmer 2s ease-in-out infinite;
}

/* Fade In Up Animation */
@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-fade-in-up.animate-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Progress Bar Animation */
@keyframes progress-fill {
    0% {
        width: 0%;
        opacity: 0.5;
    }
    100% {
        width: 100%;
        opacity: 1;
    }
}

.progress-bar-animate {
    width: 0% !important;
    position: relative;
    overflow: hidden;
    transition: width 1.5s ease-out;
}

.progress-bar-animate.animate-visible {
    width: 100% !important;
}

.progress-bar-animate.animate-visible::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer-progress 2s ease-in-out infinite;
}

@keyframes shimmer-progress {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}
