/* ===================================================
   ABOUT SECTION ENHANCEMENTS - Stats, Projects, Expertise
   =================================================== */

/* Enhanced Stats Grid */
.about-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1.5rem;
    margin: 2.5rem 0;
}

.stat-card {
    /* Solid gradient background instead of blur - MUCH faster */
    background: linear-gradient(135deg,
            rgba(0, 229, 255, 0.12) 0%,
            rgba(0, 229, 255, 0.08) 100%);
    /* NO backdrop-filter - performance killer removed */
    border: 1px solid rgba(0, 229, 255, 0.2);
    border-radius: 16px;
    padding: 1.5rem 1rem;
    text-align: center;
    transition: transform 0.3s ease, border-color 0.3s ease;
    cursor: default;
    will-change: transform;
}

.stat-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-cyan);
    box-shadow: 0 8px 30px rgba(0, 229, 255, 0.25);
}

.stat-card .stat-number {
    font-size: clamp(2rem, 4.5vw, 2.6rem);
    font-weight: 800;
    font-family: 'Space Grotesk', sans-serif;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
}

.stat-card .stat-label {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Expertise Section */
.expertise-section {
    margin: 3rem 0 2.5rem 0;
}

.expertise-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(1.4rem, 3.5vw, 1.8rem);
    font-weight: 700;
    color: var(--accent-cyan);
    margin-bottom: 1.5rem;
    text-align: center;
}

.expertise-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.expertise-item {
    background: rgba(123, 47, 247, 0.08);
    border: 1px solid rgba(123, 47, 247, 0.2);
    border-radius: 12px;
    padding: 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.expertise-item:hover {
    transform: translateX(5px);
    background: rgba(123, 47, 247, 0.12);
    border-color: var(--accent-purple);
    box-shadow: -4px 0 15px rgba(123, 47, 247, 0.3);
}

.expertise-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.expertise-text {
    font-size: 1rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
}

/* Featured Projects */
.featured-projects {
    margin: 3rem 0;
}

.featured-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(1.4rem, 3.5vw, 1.8rem);
    font-weight: 700;
    color: var(--accent-cyan);
    margin-bottom: 1.5rem;
    text-align: center;
}

.project-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.project-highlight-card {
    /* Solid background instead of blur - better performance */
    background: linear-gradient(135deg,
            rgba(26, 31, 58, 0.9) 0%,
            rgba(15, 23, 42, 0.9) 100%);
    /* NO backdrop-filter - performance optimization */
    border: 1px solid rgba(0, 229, 255, 0.3);
    border-radius: 16px;
    padding: 2rem;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
    will-change: transform;
}

.project-highlight-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-accent);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.project-highlight-card:hover::before {
    transform: scaleX(1);
}

.project-highlight-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent-cyan);
    box-shadow: 0 12px 40px rgba(0, 229, 255, 0.3);
}

.project-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.project-name {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.5rem;
}

.project-desc {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1rem;
}

.project-metric {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--accent-cyan);
    margin-bottom: 0.75rem;
}

.project-tech {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 500;
}

/* Hide old stats (keep for backward compatibility but hide) */
.about-stats {
    display: none;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .about-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .stat-card {
        padding: 1rem 0.75rem;
    }

    .stat-card .stat-number {
        font-size: 2rem;
    }

    .expertise-grid {
        grid-template-columns: 1fr;
    }

    .project-cards-grid {
        grid-template-columns: 1fr;
    }
}

/* ===================================================
   WHY AI/ML SECTION - Personal Story
   =================================================== */

.why-aiml-section {
    margin: 3rem 0;
}

.why-aiml-card {
    background: linear-gradient(135deg,
            rgba(123, 47, 247, 0.08) 0%,
            rgba(0, 229, 255, 0.08) 100%);
    border: 2px solid rgba(123, 47, 247, 0.25);
    border-radius: 20px;
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
}

.why-aiml-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.why-aiml-card:hover::before {
    transform: scaleX(1);
}

.why-aiml-card:hover {
    border-color: var(--accent-purple);
    box-shadow: 0 12px 40px rgba(123, 47, 247, 0.25);
    transform: translateY(-5px);
}

.why-aiml-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.why-icon {
    font-size: 2.5rem;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        filter: brightness(1);
    }

    50% {
        transform: scale(1.1);
        filter: brightness(1.2);
    }
}

.why-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(1.6rem, 3.5vw, 2rem);
    font-weight: 700;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 0;
}

.why-content {
    color: rgba(255, 255, 255, 0.9);
}

.why-text {
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 1.25rem;
    color: rgba(255, 255, 255, 0.85);
}

.why-text:last-of-type {
    margin-bottom: 2rem;
}

.why-text strong {
    color: #fff;
    font-weight: 600;
}

.highlight-text {
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 600;
}

.why-quote {
    background: rgba(0, 229, 255, 0.05);
    border-left: 4px solid var(--accent-cyan);
    border-radius: 8px;
    padding: 1.5rem;
    margin-top: 2rem;
    position: relative;
}

.why-quote i {
    font-size: 2rem;
    color: var(--accent-cyan);
    opacity: 0.3;
    position: absolute;
    top: 1rem;
    left: 1rem;
}

.why-quote p {
    margin: 0;
    padding-left: 2.5rem;
    font-size: 1.1rem;
    font-style: italic;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.7;
}

/* Responsive */
@media (max-width: 768px) {
    .why-aiml-card {
        padding: 2rem 1.5rem;
    }

    .why-icon {
        font-size: 2rem;
    }

    .why-text {
        font-size: 1rem;
    }

    .why-quote {
        padding: 1.25rem;
    }

    .why-quote p {
        font-size: 1rem;
        padding-left: 2rem;
    }

    .why-quote i {
        font-size: 1.5rem;
    }
}