/**
 * FinoAi About Page - Custom Styles
 * Separated from HTML for better performance and SEO
 */

/* 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\:not-sr-only:focus {
    position: static;
    width: auto;
    height: auto;
    padding: 0.5rem 1rem;
    margin: 0;
    overflow: visible;
    clip: auto;
    white-space: normal;
}

*:focus-visible {
    outline: 2px solid #00BFFF;
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Hero gradient background */
.about-hero-bg {
    background: #0D1117;
    background-image: radial-gradient(ellipse at 15% 0%, rgba(46, 71, 231, 0.4) 0%, rgba(46, 71, 231, 0.2) 30%, transparent 70%);
    position: relative;
}

/* ChromaGrid Team Cards */
.chroma-grid {
    position: relative;
    width: 100%;
    height: 100%;
    display: grid;
    grid-template-columns: repeat(3, 320px);
    justify-content: center;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
    --x: 50%;
    --y: 50%;
    --r: 300px;
}

@media (max-width: 1124px) {
    .chroma-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 320px));
    }
}

@media (max-width: 768px) {
    .chroma-grid {
        grid-template-columns: 1fr;
        max-width: 320px;
    }
}

.chroma-card {
    position: relative;
    width: 320px;
    border-radius: 32px;
    overflow: hidden;
    border: 1px solid #333;
    transition: border-color 0.3s ease;
    --mouse-x: 50%;
    --mouse-y: 50%;
}

.chroma-card:hover {
    border-color: var(--card-border, #00BFFF);
}

.chroma-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at var(--mouse-x) var(--mouse-y), rgba(64, 255, 170, 0.3), rgba(64, 121, 255, 0.2), transparent 70%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 2;
}

.chroma-card:hover::before {
    opacity: 1;
}

.chroma-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 10;
    backdrop-filter: grayscale(1) brightness(0.78);
    -webkit-backdrop-filter: grayscale(1) brightness(0.78);
    background: rgba(0, 0, 0, 0.001);
    mask-image: radial-gradient(circle var(--r) at var(--x) var(--y),
        transparent 0%, transparent 15%, rgba(0, 0, 0, 0.1) 30%,
        rgba(0, 0, 0, 0.22) 45%, rgba(0, 0, 0, 0.35) 60%,
        rgba(0, 0, 0, 0.5) 75%, rgba(0, 0, 0, 0.68) 88%, white 100%
    );
    -webkit-mask-image: radial-gradient(circle var(--r) at var(--x) var(--y),
        transparent 0%, transparent 15%, rgba(0, 0, 0, 0.1) 30%,
        rgba(0, 0, 0, 0.22) 45%, rgba(0, 0, 0, 0.35) 60%,
        rgba(0, 0, 0, 0.5) 75%, rgba(0, 0, 0, 0.68) 88%, white 100%
    );
}

.chroma-fade {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 11;
    backdrop-filter: grayscale(1) brightness(0.78);
    -webkit-backdrop-filter: grayscale(1) brightness(0.78);
    background: rgba(0, 0, 0, 0.001);
    mask-image: radial-gradient(circle var(--r) at var(--x) var(--y),
        white 0%, white 15%, rgba(255, 255, 255, 0.9) 30%,
        rgba(255, 255, 255, 0.78) 45%, rgba(255, 255, 255, 0.65) 60%,
        rgba(255, 255, 255, 0.5) 75%, rgba(255, 255, 255, 0.32) 88%, transparent 100%
    );
    -webkit-mask-image: radial-gradient(circle var(--r) at var(--x) var(--y),
        white 0%, white 15%, rgba(255, 255, 255, 0.9) 30%,
        rgba(255, 255, 255, 0.78) 45%, rgba(255, 255, 255, 0.65) 60%,
        rgba(255, 255, 255, 0.5) 75%, rgba(255, 255, 255, 0.32) 88%, transparent 100%
    );
    opacity: 1;
    transition: opacity 0.6s ease;
}

/* Animated Gradient Text */
.animated-gradient-text {
    position: relative;
    display: inline-block;
    background-image: linear-gradient(to right, #40ffaa, #4079ff, #40ffaa, #4079ff, #40ffaa);
    background-size: 300% 100%;
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    animation: gradient-animation 8s linear infinite;
    font-weight: 700;
}

@keyframes gradient-animation {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}
