/**
 * BrightAster Website
 *
 * @file about-section.css
 * @description Styles for the about section with enhanced interactive stat cards.
 * @version 9.2 (Final Hover Polish)
 */

.about-section {
    padding: 100px 20px;
    text-align: center;
    overflow-x: hidden; /* Prevents horizontal scroll on mobile */
}
.about-container {
    max-width: 1100px;
    margin: 0 auto;
}
.about-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    border: 1px solid var(--dark-divider-color);
    border-radius: 50px;
    color: var(--primary-color);
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 30px;
    background: rgba(10, 10, 10, 0.5);
}
.about-badge .badge-icon {
    width: 16px;
    height: 16px;
}
.about-greeting {
    font-size: 24px;
    color: var(--primary-color);
    max-width: 800px;
    margin: 0 auto 60px auto;
    line-height: 1.7;
    text-align: center;
}
.about-greeting .char {
    opacity: 0.2;
}

/* --- Stat Cards --- */
.about-cards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}
.about-card {
    background: linear-gradient(145deg, var(--secondary-color), #1a1a1c);
    padding: 25px;
    border-radius: 15px;
    border: 1px solid var(--divider-color);
    /* Updated transition for smoother effect */
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    text-align: left;
    position: relative;
    z-index: 1;
}
.about-card:hover {
    transform: translateY(-10px);
    /* New glowing effect inspired by the hero badge */
    box-shadow: 0 0 30px rgba(16, 151, 210, 0.3);
    z-index: 2;
}
.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 25px;
}
.card-title {
    font-size: 16px;
    color: var(--text-color);
    line-height: 1.4;
}
.card-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--divider-color);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 18px;
    color: var(--accent-color);
    flex-shrink: 0;
    position: relative; /* For pseudo-element */
    overflow: hidden; /* To contain the gradient reveal */
    transition: background-color 0.4s ease;
}
.card-icon::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: linear-gradient(to bottom right, var(--accent-color), var(--accent-secondary-color));
    border-radius: 50%;
    transform: scale(0);
    transition: transform 0.4s ease;
    z-index: 1;
}
.card-icon i {
    transition: color 0.4s ease;
    position: relative;
    z-index: 2;
}

/* New hover state for the icon circle and icon */
.about-card:hover .card-icon::before {
    transform: scale(1);
}
.about-card:hover .card-icon i {
    color: var(--primary-color);
}

.card-body {
    margin-top: 15px;
}
.card-number {
    font-size: 48px;
    font-weight: 700;
    color: var(--primary-color);
    display: block;
    margin-bottom: 20px;
}
.card-graph {
    width: 100%;
    height: 60px;
    position: relative;
}

/* --- Tooltip Styles --- */
.graph-tooltip {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) scale(0.9) translateY(5px);
    background: #1a1a1c;
    border: 1px solid var(--dark-divider-color);
    color: var(--primary-color);
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
    text-align: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
    z-index: 10;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}
.graph-tooltip.tooltip-wide {
    white-space: normal;
    max-width: 120px;
}
.graph-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 5px;
    border-style: solid;
    border-color: #1a1a1c transparent transparent transparent;
}

/* --- Graph Styles --- */
.experience-graph { display: flex; gap: 5px; align-items: flex-end; }
.experience-graph .bar { position: relative; width: 25%; height: 0%; background: linear-gradient(to top, var(--accent-color), var(--accent-secondary-color)); border-radius: 4px; transition: height 1.2s cubic-bezier(0.25, 1, 0.5, 1), transform 0.3s ease; }
.about-card:hover .experience-graph .bar { transform: scaleY(1.05); } /* Hover effect for graph */
.experience-graph .bar:hover .graph-tooltip { opacity: 1; visibility: visible; transform: translateX(-50%) scale(1) translateY(0); }
.about-card.is-visible .experience-graph .bar:nth-child(1) { transition-delay: 0.2s; height: 30%; }
.about-card.is-visible .experience-graph .bar:nth-child(2) { transition-delay: 0.3s; height: 50%; }
.about-card.is-visible .experience-graph .bar:nth-child(3) { transition-delay: 0.4s; height: 70%; }
.about-card.is-visible .experience-graph .bar:nth-child(4) { transition-delay: 0.5s; height: 90%; }

.projects-graph { background: linear-gradient(to top, rgba(16, 151, 210, 0.05), transparent); border-bottom: 1px dashed var(--dark-divider-color); }
.projects-graph::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: url("data:image/svg+xml,%3Csvg width='100' height='100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M 10 70 C 40 10, 70 90, 95 20' stroke='%231097D2' fill='none' stroke-width='2' stroke-dasharray='200' stroke-dashoffset='200'/%3E%3C/svg%3E") no-repeat; background-size: contain; transition: all 1.5s ease-out 0.2s, filter 0.3s ease; }
.about-card:hover .projects-graph::before { filter: brightness(1.2); } /* Hover effect for graph */
.about-card.is-visible .projects-graph::before { stroke-dashoffset: 0; }
.projects-graph .line-point { position: absolute; width: 10px; height: 10px; background: var(--primary-color); border: 2px solid var(--accent-secondary-color); border-radius: 50%; transition: transform 0.3s ease; }
.projects-graph .line-point:hover { transform: scale(1.5); }
.projects-graph .line-point:hover .graph-tooltip { opacity: 1; visibility: visible; transform: translateX(-50%) scale(1) translateY(0); }

.team-graph .team-bar-group { display: flex; flex-direction: column; gap: 8px; }
.team-bar { position: relative; height: 8px; background: var(--dark-divider-color); border-radius: 4px; width: 0%; transition: width 1.2s cubic-bezier(0.25, 1, 0.5, 1), filter 0.3s ease; }
.about-card:hover .team-bar { filter: brightness(1.2); } /* Hover effect for graph */
.team-bar:hover .graph-tooltip { opacity: 1; visibility: visible; transform: translateX(-50%) scale(1) translateY(0); }
.about-card.is-visible .team-bar:nth-child(1) { background: var(--accent-color); width: 90%; transition-delay: 0.2s; }
.about-card.is-visible .team-bar:nth-child(2) { background: var(--accent-secondary-color); width: 75%; transition-delay: 0.3s; }
.about-card.is-visible .team-bar:nth-child(3) { background: var(--primary-color); width: 60%; transition-delay: 0.4s; }

.satisfaction-graph { display: flex; justify-content: center; align-items: center; }
.satisfaction-graph .progress-ring { position: relative; }
.satisfaction-graph .progress-ring-bg { stroke: var(--dark-divider-color); }
.satisfaction-graph .progress-ring-circle { transition: stroke-dashoffset 2s ease-out 0.2s, filter 0.3s ease; transform: rotate(-90deg); transform-origin: 50% 50%; stroke: url(#satisfactionGradient); stroke-linecap: round; }
.about-card:hover .satisfaction-graph .progress-ring-circle { filter: drop-shadow(0 0 0px var(--accent-color)); } /* Hover effect for graph */
.satisfaction-graph .card-number { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); font-size: 24px; margin: 0; }
.satisfaction-graph:hover .graph-tooltip { opacity: 1; visibility: visible; transform: translateX(-50%) scale(1) translateY(0); }

/* Staggering animation delays */
.about-badge.is-visible { transition-delay: 0.1s; }
.about-greeting.is-visible { transition-delay: 0.2s; }
.about-cards-grid .about-card:nth-child(1).is-visible { transition-delay: 0.3s; }
.about-cards-grid .about-card:nth-child(2).is-visible { transition-delay: 0.4s; }
.about-cards-grid .about-card:nth-child(3).is-visible { transition-delay: 0.5s; }
.about-cards-grid .about-card:nth-child(4).is-visible { transition-delay: 0.6s; }

/* --- Responsive Styles --- */
@media (max-width: 1024px) { .about-cards-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 768px) {
    .about-greeting { font-size: 18px; }
    .about-cards-grid { grid-template-columns: 1fr; }
    .satisfaction-graph { padding-bottom: 20px; }
}
