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

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 4px rgba(79, 209, 199, 0.1);
    }
    50% {
        box-shadow: 0 0 6px rgba(79, 209, 199, 0.15);
    }
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

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

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

@keyframes typing {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

@keyframes blink {
    0%, 50% {
        opacity: 1;
    }
    51%, 100% {
        opacity: 0;
    }
}

/* Animation Classes */
.animate-fadeInUp {
    animation: fadeInUp 0.8s ease-out forwards;
}

.animate-fadeInDown {
    animation: fadeInDown 0.8s ease-out forwards;
}

.animate-fadeInLeft {
    animation: fadeInLeft 0.8s ease-out forwards;
}

.animate-fadeInRight {
    animation: fadeInRight 0.8s ease-out forwards;
}

.animate-slideInUp {
    animation: slideInUp 0.6s ease-out forwards;
}

.animate-slideInDown {
    animation: slideInDown 0.6s ease-out forwards;
}

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

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

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

/* Staggered Animations */
.features-grid .feature-card:nth-child(1) { animation-delay: 0.1s; }
.features-grid .feature-card:nth-child(2) { animation-delay: 0.2s; }
.features-grid .feature-card:nth-child(3) { animation-delay: 0.3s; }
.features-grid .feature-card:nth-child(4) { animation-delay: 0.4s; }
.features-grid .feature-card:nth-child(5) { animation-delay: 0.5s; }
.features-grid .feature-card:nth-child(6) { animation-delay: 0.6s; }

.workflow-step:nth-child(1) { animation-delay: 0.1s; }
.workflow-step:nth-child(2) { animation-delay: 0.2s; }
.workflow-step:nth-child(3) { animation-delay: 0.3s; }
.workflow-step:nth-child(4) { animation-delay: 0.4s; }
.workflow-step:nth-child(5) { animation-delay: 0.5s; }

.compliance-card:nth-child(1) { animation-delay: 0.1s; }
.compliance-card:nth-child(2) { animation-delay: 0.2s; }
.compliance-card:nth-child(3) { animation-delay: 0.3s; }
.compliance-card:nth-child(4) { animation-delay: 0.4s; }

/* Enhanced Hover Effects — feature-card now uses pillar-style (no shimmer, no lift) */
.feature-card {
    position: relative;
    overflow: visible;
    transition: background 0.28s ease;
}

.feature-card::before {
    display: none;
}

.feature-card:hover::before {
    display: none;
}

/* Button Enhanced Effects */
.btn-primary {
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

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

/* Navigation Link Enhanced Effects */
.nav-link {
    position: relative;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform: translateX(-50%);
}

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

/* Workflow Step Enhanced Effects */
.workflow-step {
    position: relative;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.workflow-step:hover {
    transform: scale(1.02);
}

.workflow-step:hover .step-number {
    background: var(--dori-teal);
    animation: pulse 1.5s infinite;
    color: var(--color-text-primary);
    box-shadow: 0 0 6px rgba(0, 182, 211, 0.2);
}

/* Compliance Card Enhanced Effects */
.compliance-card {
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.compliance-card:hover {
    transform: scale(1.02);
    box-shadow: 0 0 6px rgba(79, 209, 199, 0.1);
}

.compliance-card:hover .compliance-icon {
    animation: pulse 1s infinite;
}

/* Hero Section Enhanced - Removed conflicting styles */

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

/* Hero Badge Animation */
.hero-badge {
    animation: fadeInDown 1s ease-out;
}

.hero-stats {
    animation: slideInUp 1s ease-out 0.2s both;
}

.hero-actions {
    animation: slideInUp 1s ease-out 0.4s both;
}

.hero-trust {
    animation: slideInUp 1s ease-out 0.6s both;
}

/* Platform Preview Animation */
.platform-preview {
    animation: float 6s ease-in-out infinite;
}

/* Scroll Reveal Animations */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal-left.active {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal-right.active {
    opacity: 1;
    transform: translateX(0);
}

/* Navbar Scroll Effect */
.navbar.scrolled {
    background: rgba(20, 20, 20, 0.98);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
    transform: translateY(0);
}

/* Removed navbar.hidden functionality to ensure navigation is always visible */

/* Enhanced Gradient Overlays */
.gradient-overlay {
    animation: gradientShift 8s ease-in-out infinite;
}

/* Social Link Effects */
.social-link {
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.social-link:hover {
    animation: pulse 0.6s ease-in-out;
}

/* Footer Badge Effects */
.footer-badge {
    transition: var(--transition-normal);
}

.footer-badge:hover {
    background: var(--accent-primary);
    color: var(--bg-primary);
    transform: translateY(-2px);
}

/* Section Title Animations */
.section-title {
    background-size: 200% 200%;
    animation: gradientShift 4s ease-in-out infinite;
}

/* CTA Button Special Effects */
.cta-actions .btn-primary {
    position: relative;
    overflow: hidden;
}

.cta-actions .btn-primary::after {
    content: '';
    position: absolute;
    top: 50%;
    right: var(--space-md);
    width: 0;
    height: 0;
    border-left: 5px solid currentColor;
    border-top: 3px solid transparent;
    border-bottom: 3px solid transparent;
    transform: translateY(-50%);
    transition: var(--transition-normal);
}

.cta-actions .btn-primary:hover::after {
    right: calc(var(--space-md) - 2px);
}

/* Enhanced Focus States */
.btn:focus-visible,
.nav-link:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
    box-shadow: 0 0 0 4px rgba(74, 158, 255, 0.2);
}

/* Loading Animations */
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.animate-spin {
    animation: spin 1s linear infinite;
}

/* Entrance Animations */
@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.animate-bounceIn {
    animation: bounceIn 0.8s ease-out forwards;
}

/* Subtle Background Animation */
@keyframes subtleMove {
    0%, 100% {
        transform: translateX(0);
    }
    50% {
        transform: translateX(10px);
    }
}

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