/* Education Section */
.education {
    background-color: #1a1b26;
    padding: 4rem 0;
}

.education h2 {
    color: #7aa2f7;
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
}

.education-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.education-card {
    background: #24283b;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(122, 162, 247, 0.1);
    border: 1px solid rgba(122, 162, 247, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
}

.education-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 8px 30px rgba(122, 162, 247, 0.2);
    border-color: rgba(122, 162, 247, 0.3);
}

.education-card h3 {
    color: #bb9af7;
    margin-bottom: 1rem;
    font-size: 1.4rem;
    position: relative;
}

.education-card h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 40px;
    height: 2px;
    background: #7aa2f7;
    transition: width 0.3s ease;
}

.education-card:hover h3::after {
    width: 60px;
}

.education-card p {
    color: #a9b1d6;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0.4rem 0;
}

.education-card .grade {
    font-weight: 500;
    color: #7dcfff;
}

.education-card .location,
.education-card .duration {
    font-style: italic;
    font-size: 0.9rem;
    color: #9aa5ce;
}

/* Animation keyframes (same as projects) */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Stagger the animation for each card */
.education-card:nth-child(1) { animation-delay: 0.1s; }
.education-card:nth-child(2) { animation-delay: 0.2s; }
