.subjects-overview {
    padding: 6rem 2rem;
    background-color: rgba(10, 25, 48, 0.05);
    position: relative;
    overflow: hidden;
    padding-top: 4rem;
}

.light-mode .subjects-overview {
    background-color: rgba(255, 255, 255, 0.05);
}

.subjects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.subject-card {
    background-color: rgba(10, 25, 48, 0.8);
    border-radius: 15px;
    padding: 2rem;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    cursor: pointer;
}

.light-mode .subject-card {
    background-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.subject-card:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.subject-icon {
    font-size: 3rem;
    color: var(--accent-dark);
    margin-bottom: 1rem;
    text-align: center;
    transition: transform 0.5s ease;
}

.light-mode .subject-icon {
    color: var(--accent-light);
}

.subject-card:hover .subject-icon {
    transform: rotate(360deg) scale(1.2);
}

.subject-card h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
    transition: color 0.3s ease;
}

.light-mode .subject-card h3 {
    color: var(--text-light);
}

.subject-card:hover h3 {
    color: var(--accent-dark);
}

.light-mode .subject-card:hover h3 {
    color: var(--accent-light);
}

.subject-short-title {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1rem;
    font-weight: bold;
    color: var(--accent-dark);
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.light-mode .subject-short-title {
    color: var(--accent-light);
}

.subject-card:hover .subject-short-title {
    opacity: 1;
}

.subject-card p {
    font-size: 1rem;
    color: var(--text-dark);
    opacity: 0;
    max-height: 0;
    transition: opacity 0.5s ease, max-height 0.5s ease;
}

.light-mode .subject-card p {
    color: var(--text-light);
}

.subject-card:hover p {
    opacity: 1;
    max-height: 100px;
}

.subject-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 70%);
    transform: rotate(45deg);
    transition: transform 0.5s ease;
}

.subject-card:hover::before {
    transform: rotate(45deg) translate(50%, 50%);
}

/* New creative element: floating particles */
.particle {
    position: absolute;
    width: 10px;
    height: 10px;
    background-color: var(--accent-dark);
    border-radius: 50%;
    opacity: 0.3;
    pointer-events: none;
}

.light-mode .particle {
    background-color: var(--accent-light);
}