html {
  scroll-behavior: smooth;
  font-size: 60%;
  overflow-x: hidden;
}

.education-section {
    background-color: var(--bg-color);
    color: #fff;
    padding: 5rem 0;
    margin: 0;
    position: relative;
    z-index: 1;
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 1s ease-out, transform 1s ease-out;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(0, 255, 238, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(123, 44, 191, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(0, 255, 238, 0.03) 0%, transparent 50%);
    background-attachment: fixed;
}

.education-section.animate {
    opacity: 1;
    transform: translateY(0);
}

.education-section h2 {
    font-size: 60px; 
    font-weight: bold;
    font-family: 'Libre Baskerville', serif;
    text-align: center;
    margin-bottom: 4rem;
    color: #fff;
}

.education-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.education-card {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 20px;
    padding: 2.5rem;
    border: 1px solid rgba(0, 255, 238, 0.1);
    backdrop-filter: blur(15px);
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(30px) scale(0.95);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.education-card.show {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.education-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--main-color), #7b2cbf);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.6s ease;
}

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

.education-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: rgba(0, 255, 238, 0.3);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.3),
        0 0 30px rgba(0, 255, 238, 0.1);
}

.education-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.education-level {
    background: linear-gradient(135deg, var(--main-color), #7b2cbf);
    color: #000;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    font-family: "Fira Mono", monospace;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.education-duration {
    color: #7b2cbf;
    font-family: "Fira Mono", monospace;
    font-size: 14px;
    font-weight: 500;
}

.education-institution {
    font-family: 'Libre Baskerville', serif;
    font-size: 28px;
    color: var(--main-color);
    margin-bottom: 1rem;
    font-weight: 600;
    line-height: 1.2;
}

.education-degree {
    font-family: "Fira Mono", monospace;
    font-size: 18px;
    color: #fff;
    margin-bottom: 1.5rem;
    font-weight: 500;
    line-height: 1.4;
}

.education-achievements {
    list-style: none;
    padding: 0;
    margin: 0;
}

.education-achievements li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.8rem;
    font-family: "Fira Mono", monospace;
    font-size: 16px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
}

.education-achievements li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--main-color);
    font-weight: bold;
    font-size: 16px;
}

.education-card:hover .education-achievements li {
    animation: slideInLeft 0.3s ease forwards;
}

.education-card:hover .education-achievements li:nth-child(1) { animation-delay: 0.1s; }
.education-card:hover .education-achievements li:nth-child(2) { animation-delay: 0.2s; }
.education-card:hover .education-achievements li:nth-child(3) { animation-delay: 0.3s; }

@keyframes slideInLeft {
    from {
        opacity: 0.7;
        transform: translateX(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.gpa-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(123, 44, 191, 0.2);
    border: 1px solid rgba(123, 44, 191, 0.4);
    padding: 0.5rem 1rem;
    border-radius: 15px;
    margin-top: 1rem;
    font-family: "Fira Mono", monospace;
    font-size: 14px;
    color: #7b2cbf;
    font-weight: 600;
}

.gpa-icon {
    width: 16px;
    height: 16px;
    background: var(--main-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    font-size: 10px;
    font-weight: bold;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .education-section h2 {
        font-size: 40px;
        margin-bottom: 2rem;
    }

    .education-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 0.5rem;
    }

    .education-card {
        padding: 2rem;
    }

    .education-institution {
        font-size: 24px;
    }

    .education-degree {
        font-size: 16px;
    }

    .education-achievements li {
        font-size: 15px;
    }

    .education-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 576px) {
    .education-section h2 {
        font-size: 32px;
    }

    .education-grid {
        gap: 1rem;
    }

    .education-card {
        padding: 1.5rem;
    }

    .education-institution {
        font-size: 22px;
    }

    .education-degree {
        font-size: 15px;
    }

    .education-achievements li {
        font-size: 14px;
    }
}

/* Special styling for different education levels */
.education-card[data-level="university"] .education-level {
    background: linear-gradient(135deg, #00ffee, #00d4aa);
}

.education-card[data-level="college"] .education-level {
    background: linear-gradient(135deg, #7b2cbf, #9d4edd);
}

.education-card[data-level="foundation"] .education-level {
    background: linear-gradient(135deg, #ff6b35, #f7931e);
}
