/* DucKI Agent Landing Page - Custom Styles */

/* Dark mode toggle for user preference */
@media (prefers-color-scheme: dark) {
    :root {
        color-scheme: dark;
    }
}

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

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

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

@media (prefers-color-scheme: dark) {
    ::-webkit-scrollbar-track {
        background: #1e293b;
    }

    ::-webkit-scrollbar-thumb {
        background: #475569;
    }

    ::-webkit-scrollbar-thumb:hover {
        background: #64748b;
    }
}

/* Code styling */
code {
    font-family: 'Courier New', Courier, monospace;
}

/* Links */
a {
    transition: color 0.2s ease;
}

a:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.3s ease;
}

/* Gradient text */
.gradient-text {
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Card hover effect */
.card-hover {
    transition: all 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

/* Details/Summary styling */
details {
    margin: 1rem 0;
}

details summary {
    cursor: pointer;
    user-select: none;
}

details summary:hover {
    color: #3b82f6;
}

details[open] summary {
    margin-bottom: 1rem;
}

/* Mobile-first responsive adjustments */
@media (max-width: 640px) {
    .hero-title {
        font-size: 1.875rem;
    }

    .section-title {
        font-size: 1.5rem;
    }
}

/* Print styles */
@media print {
    nav,
    footer {
        display: none;
    }

    a {
        text-decoration: underline;
    }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }
}

/* High contrast mode support */
@media (prefers-contrast: more) {
    button,
    a {
        text-decoration: underline;
    }

    input,
    select,
    textarea {
        border-width: 2px;
    }
}

/* Light theme text improvements */
.text-readable {
    line-height: 1.6;
}

/* Utility classes */
.truncate-lines-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.truncate-lines-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Focus visible for keyboard navigation */
:focus-visible {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

/* Skip to main content link */
.skip-to-main {
    position: absolute;
    left: -10000px;
    z-index: 999;
}

.skip-to-main:focus {
    position: static;
    background: #3b82f6;
    color: white;
    padding: 0.5rem 1rem;
}
