/* styles/about.css */

.about {
    font-family: 'Gilroy';
    padding: 4rem 0;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.about.animate-in {
    opacity: 1;
    transform: translateY(0);
}

@media (width <= 47.99875rem) {
    .about {
        padding: 3rem 1rem;
    }
}

.about__title {
    text-align: center;
    margin-bottom: 1rem;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease-out 0.1s, transform 0.5s ease-out 0.1s;
}

.about.animate-in .about__title {
    opacity: 1;
    transform: translateY(0);
}

.about__subtitle {
    text-align: center;
    color: var(--color-light);
    font-size: 1.125rem;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto 3rem;
    opacity: 0.8;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease-out 0.2s, transform 0.5s ease-out 0.2s;
}

.about.animate-in .about__subtitle {
    opacity: 0.8;
    transform: translateY(0);
}

@media (width <= 47.99875rem) {
    .about__subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
        padding: 0 1rem;
    }
}

.about__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    max-width: 900px;
    margin: 0 auto 3rem;
}

@media (width <= 63.99875rem) {
    .about__grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        max-width: 400px;
    }
}

.about__card {
    text-align: center;
    padding: 2rem 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 1rem;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
}

.about.animate-in .about__card:nth-child(1) {
    animation: cardFadeIn 0.5s ease-out 0.3s forwards;
}

.about.animate-in .about__card:nth-child(2) {
    animation: cardFadeIn 0.5s ease-out 0.4s forwards;
}

.about.animate-in .about__card:nth-child(3) {
    animation: cardFadeIn 0.5s ease-out 0.5s forwards;
}

@keyframes cardFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.about__card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(20, 97, 204, 0.3);
    transform: translateY(-4px);
}

@media (width <= 47.99875rem) {
    .about__card {
        padding: 1.5rem 1rem;
    }
}

.about__card-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #04DBD6;
    line-height: 1;
    margin-bottom: 0.25rem;
}

@media (width <= 47.99875rem) {
    .about__card-number {
        font-size: 2rem;
    }
}

.about__card-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-light);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
}

.about__card-desc {
    font-size: 0.875rem;
    color: var(--color-light);
    opacity: 0.6;
    line-height: 1.5;
    margin: 0;
}

@media (width <= 47.99875rem) {
    .about__card-desc {
        font-size: 0.8125rem;
    }
}

.about__stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    max-width: 600px;
    margin: 0 auto;
    opacity: 0;
    transform: translateY(20px);
}

.about.animate-in .about__stack {
    animation: cardFadeIn 0.5s ease-out 0.6s forwards;
}

.about__stack-item {
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 2rem;
    color: var(--color-light);
    font-size: 0.8125rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.about__stack-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
}

.about__stack-item--primary {
    background: rgba(20, 97, 204, 0.2);
    border-color: rgba(20, 97, 204, 0.4);
    color: #04DBD6;
}

.about__stack-item--primary:hover {
    background: rgba(20, 97, 204, 0.3);
    border-color: rgba(4, 219, 214, 0.5);
}

/* Glow animation for AI tools */
.about__stack-item--glow {
    position: relative;
    cursor: pointer;
    animation: glowPulse 3s ease-in-out infinite;
}

.about__stack-item--glow:nth-child(2) {
    animation-delay: 1.5s;
}

@keyframes glowPulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(4, 219, 214, 0);
    }
    50% {
        box-shadow: 0 0 20px 4px rgba(4, 219, 214, 0.4);
    }
}

.about__stack-item--glow:hover {
    animation: none;
    box-shadow: 0 0 25px 6px rgba(4, 219, 214, 0.5);
}

/* Tooltip */
.about__stack-item--glow::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    width: 240px;
    padding: 0.75rem 1rem;
    background: rgba(8, 24, 53, 0.95);
    border: 1px solid rgba(4, 219, 214, 0.3);
    border-radius: 0.5rem;
    color: var(--color-light);
    font-size: 0.75rem;
    line-height: 1.5;
    text-align: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
    z-index: 100;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.about__stack-item--glow::before {
    content: '';
    position: absolute;
    bottom: calc(100% + 4px);
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    border: 6px solid transparent;
    border-top-color: rgba(4, 219, 214, 0.3);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 101;
}

.about__stack-item--glow:hover::after,
.about__stack-item--glow:hover::before {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

@media (width <= 47.99875rem) {
    .about__stack {
        gap: 0.5rem;
    }

    .about__stack-item {
        font-size: 0.75rem;
        padding: 0.4rem 0.75rem;
    }
}

/* Tooltip mobile adjustments */
@media (width <= 47.99875rem) {
    .about__stack-item--glow::after {
        width: 200px;
        font-size: 0.6875rem;
        padding: 0.5rem 0.75rem;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    .about,
    .about__title,
    .about__subtitle,
    .about__card,
    .about__stack,
    .about__stack-item--glow {
        transition: none !important;
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
}
