/* Site2 Additional Styles */
.gradient-bg {
    background: linear-gradient(120deg, #1a202c 0%, #2d3748 100%);
}

.workflow-card {
    transition: all 0.3s ease;
}

.workflow-card:hover {
    transform: translateY(-5px);
}

.highlight-gradient {
    background: linear-gradient(90deg, #3182ce 0%, #4fd1c5 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Crossfade animation for the image slideshow */
@keyframes crossfade {
    0%, 45% { opacity: 1; }
    50%, 95% { opacity: 0; }
    100% { opacity: 1; }
}

.crossfade-slideshow {
    position: relative;
    background-color: #f5f5f5; /* Light background color to match common UI */
    display: flex;
    align-items: center;
    justify-content: center;
}

.crossfade-slideshow img {
    position: absolute;
    max-width: 90%; /* Constrain width to reduce horizontal gaps */
    max-height: 100%;
    width: auto; /* Allow natural width */
    height: auto; /* Allow natural height */
    object-fit: contain;
}

.crossfade-slideshow img:nth-child(1) {
    position: relative; /* Keep the first image in the flow */
    animation: crossfade 6s linear infinite;
}

.crossfade-slideshow img:nth-child(2) {
    animation: crossfade 6s linear infinite reverse;
}

/* Add styles for sticky navigation */
#stickyNav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: linear-gradient(120deg, #1a202c 0%, #2d3748 100%);
    transition: all 0.3s ease;
}

#stickyNav.scrolled {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* Add padding to body to prevent content from hiding behind the fixed nav */
header .nav-padding {
    padding-top: 80px;
}

/* Mobile menu adjustments for sticky nav */
#stickyNav #mobile-menu {
    background: linear-gradient(120deg, #1a202c 0%, #2d3748 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Add dynamic padding when mobile menu is open */
body.mobile-menu-open header .nav-padding {
    padding-top: 200px; /* Adjust based on mobile menu height */
}

@media (min-width: 768px) {
    body.mobile-menu-open header .nav-padding {
        padding-top: 80px; /* Reset for desktop */
    }
}

/* Animation classes - modified to ensure visibility */
.fade-in {
    opacity: 1; /* Start visible */
    transform: translateY(0); /* Start in correct position */
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.slide-in-left {
    opacity: 1; /* Start visible */
    transform: translateX(0); /* Start in correct position */
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.slide-in-right {
    opacity: 1; /* Start visible */
    transform: translateX(0); /* Start in correct position */
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.scale-in {
    opacity: 1; /* Start visible */
    transform: scale(1); /* Start in correct position */
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.stagger-item {
    opacity: 1; /* Start visible */
    transform: translateY(0); /* Start in correct position */
    transition: opacity 0.3s ease-out, transform 0.3s ease-out;
}

/* Enhance on hover or animation trigger */
.fade-in.animate, .slide-in-left.animate, .slide-in-right.animate, 
.scale-in.animate, .stagger-item.animate {
    opacity: 1;
    transform: translateY(0) translateX(0) scale(1);
}

.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(49, 130, 206, 0.7);
    }
    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(49, 130, 206, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(49, 130, 206, 0);
    }
}

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

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

.typing-cursor {
    display: inline-block;
    width: 2px;
    height: 1em;
    background-color: #fff;
    animation: blink 1s step-end infinite;
    margin-left: 2px;
    vertical-align: text-bottom;
}

@keyframes blink {
    from, to { opacity: 1; }
    50% { opacity: 0; }
}

.demo-card-hover {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.demo-card-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.site-logo {
    height: 40px;
    width: auto;
}

/* EULA Specific Styling */
:root {
    --color-bg-light: #f8f9fc; /* Light background */
    --color-bg-medium: #eaeef5;
    --color-accent-primary: #3e6396; /* Professional blue */
    --color-accent-secondary: #4f76b3; /* Slightly darker blue for contrast */
    --color-text-dark: #2c3e50; /* Deep slate for readability */
    --color-text-medium: #5e6d7e;
}

.eula-body {
    font-family: "Inter UI", Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: var(--color-text-dark);
    background-color: var(--color-bg-light);
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem;
}

.eula-body h1, .eula-body h2, .eula-body h3 {
    color: var(--color-accent-primary);
    font-weight: 500;
}

.eula-body h1 {
    font-size: 1.8rem;
    border-bottom: 1px solid var(--color-accent-primary);
    padding-bottom: 0.5rem;
}

.eula-body h2 {
    font-size: 1.4rem;
    margin-top: 2rem;
}

.eula-body h3 {
    font-size: 1.1rem;
    color: var(--color-accent-secondary);
}

.eula-body a {
    color: var(--color-accent-secondary);
    text-decoration: none;
}

.eula-body a:hover {
    text-decoration: underline;
}

.eula-body strong {
    color: var(--color-accent-secondary);
    font-weight: 500;
}

.eula-body ul {
    padding-left: 1.5rem;
}

.eula-body li {
    margin-bottom: 0.5rem;
}

.eula-body hr {
    border: none;
    border-top: 1px solid var(--color-accent-primary);
    margin: 2rem 0;
}

/* Back to homepage link */
.back-link {
    display: inline-block;
    margin-bottom: 2rem;
    color: var(--color-accent-secondary);
    text-decoration: none;
    font-weight: 500;
}

.back-link:hover {
    text-decoration: underline;
}

/* Print styles */
@media print {
    .eula-body {
        color: #333;
        background-color: white;
    }
    
    .eula-body h1, .eula-body h2, .eula-body h3, 
    .eula-body strong, .eula-body a {
        color: #3e6396;
    }
}

/* Scroll-triggered animations */
.scroll-reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.6s cubic-bezier(0.215, 0.61, 0.355, 1);
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}