.topics-section {
    padding: 50px 0;
    background: var(--neutral-bg);
}

.topic-card {
    background: var(--card-bg);
    border: 1px solid var(--border-subtle);
    border-radius: 20px;
    padding: 40px 28px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: var(--shadow-subtle);
    overflow: hidden;
}

.topic-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 80px;
    height: var(--accent-line-height);
    background: var(--primary-gradient);
    transition: transform 0.3s ease;
    border-radius: 0 0 4px 4px;
}

.topic-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.02) 0%, rgba(6, 182, 212, 0.02) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.topic-card:hover::before {
    transform: translateX(-50%) scaleX(1);
}

.topic-card:hover::after {
    opacity: 1;
}

.topic-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-large);
    border-color: var(--accent-purple);
}

.topic-card:focus-within {
    transform: translateY(-4px);
    box-shadow: var(--shadow-large);
    border-color: var(--accent-cyan);
}

.topic-icon {
    font-size: clamp(2.5rem, 6vw, 3.5rem);
    margin-bottom: var(--spacing-lg);
    color: var(--accent-purple);
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

.topic-card:hover .topic-icon {
    transform: scale(1.05);
    color: var(--accent-cyan);
}

.topic-title {
    font-size: clamp(1.3rem, 4vw, 1.6rem);
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-primary);
    position: relative;
    z-index: 1;
}

.topic-description {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: var(--spacing-lg);
    flex-grow: 1;
    font-size: clamp(0.9rem, 2.5vw, 1rem);
    position: relative;
    z-index: 1;
}

.topic-link {
    color: var(--accent-purple);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-top: auto;
    border-bottom: 2px solid transparent;
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    font-size: clamp(0.9rem, 2.5vw, 1rem);
    align-self: center;
}

.topic-link:hover {
    color: var(--accent-cyan);
    border-bottom-color: var(--accent-cyan);
    transform: translateX(4px);
    text-decoration: none;
}

.section-title {
    font-size: clamp(2.2rem, 6vw, 3rem);
    font-weight: 800;
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    color: var(--text-primary);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -16px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: var(--primary-gradient);
    border-radius: 2px;
}